This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0" encoding="UTF-8"?> | |
<template> | |
<name>ClosePhoto</name> | |
<description>Browse photos taken near you</description> | |
<devices> | |
<device name='iPhone'></device> | |
<device name='Android'></device> | |
</devices> | |
<views> | |
<view> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> | |
<meta name="viewport" content="user-scalable=no, width=device-width, minimum-scale=1, maximum-scale=1" /> | |
<meta name="apple-mobile-web-app-capable" content="yes" /> | |
<meta name="apple-mobile-web-app-status-bar-style" content="black" /> | |
<title>Home</title> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var app = {}; | |
// The Brightcove API provides an "init" event in addition to the normal jQuery load event | |
$(bc).bind("init", function () { | |
var wrappedFetch = bc.device.fetchContentsOfURL; | |
// We can detect if we are on-device or in-browser to make life easier for ourselves | |
if (!bc.device.isNative()) { | |
bc.device.fetchContentsOfURL = function(url, success, error) { | |
// note: start chrome with --disable-web-security to disable cross-domain protection |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
body {margin: 0} | |
/* gallery and image detail styles */ | |
#photos .thumb {float: left; background-position: center; background-repeat: no-repeat; overflow: hidden;} | |
#imageInfo { position: absolute; bottom: 0px; padding: 10px 5px; width: 100%; color: white; background-color: #292927; border-top: 1px dashed #4B4B4A; } | |
#imageInfo .close { float: right; display: block; margin-right: 10px; margin-top: -5px; font-size: 10px; } | |
#imageInfo h1 { font-size: 95%; } | |
#imageInfo h2 { font-size: 80%; font-weight: normal; } | |
#imageInfo h3 { font-size: 70%; font-weight: normal; } |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
* var vs val and defining variables | |
*/ | |
var changeMe = 1 // variable assignment | |
val dontChangeMe = 2 // constant assignment | |
changeMe = 3 | |
assert(changeMe == 3) | |
// this causes the error: reassignment to val |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@media screen and (max-width: 650px) { | |
#container, #aside-container, #blog-title, #access { display: block; float: none; width: auto; margin: 0 3% 3% 3%; } | |
body { font-size: 14px; line-height: 16px; } | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
http_path = "/" | |
css_dir = "." | |
sass_dir = "sass" | |
images_dir = "images" | |
javascripts_dir = "scripts" | |
# You can select your preferred output style here (can be overridden via the command line): | |
# output_style = :expanded or :nested or :compact or :compressed | |
# To enable relative paths to assets via compass helper functions. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ cd git | |
$ mkdir yourproject.git | |
$ cd yourproject.git | |
$ git --bare init |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<VirtualHost *:80> | |
#... | |
DocumentRoot /var/www/yoursite | |
Options FollowSymLinks | |
<Directory /> | |
Options FollowSymLinks | |
AllowOverride FileInfo | |
</Directory> | |
<Directory /var/www/yoursite> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// indicate if a post has comments or not | |
// note: $c is an array of strings | |
function childtheme_filter_post_class($c) { | |
$c[] = get_comments_number() > 0 ? 'has-comments' : 'no-comments'; | |
return $c; | |
} | |
add_filter('post_class', 'childtheme_filter_post_class', 10, 1); |
OlderNewer