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
#facebox | |
position: absolute | |
top: 0 | |
left: 0 | |
z-index: 100 | |
text-align: left | |
#facebox .popup | |
position:relative | |
border: 3px solid rgba(0,0,0,0) |
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
<div class="row-fluid" ng-controller="ShowsCtrl"> | |
<div class="span6"> | |
<h1>{{seenCount()}} of {{shows.length}} seen</h1> | |
<ul class="past"> | |
<li ng-repeat="show in shows | filter:query | orderBy:orderProp" class="seen-{{show.seen}}"> | |
<i ng-click="toggleSeen(show)" ng-class="{true:'icon-white icon-eye-close', false:'icon-white icon-eye-open'}[show.seen]" | |
title="seen?"></i> | |
<a href="#{{show.id}}">{{show.name}}</a> | |
<br /> |
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
require 'rubygems' | |
require 'json/ld' | |
require 'net/http' | |
context = { | |
"foaf" => "http://xmlns.com/foaf/0.1/", | |
"dbo" => "http://dbpedia.org/ontology/", | |
"xsd" => "http://www.w3.org/2001/XMLSchema#", | |
"name" => { |
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
# terminal colors, Git branch in prompt, where am i | |
export CLICOLOR=1 | |
export TERM=xterm-color | |
export LSCOLORS=ExFxCxDxBxegedabagacad | |
parse_git_branch() { | |
git branch --no-color 2> /dev/null | sed -e '/^[^*]/d' -e 's/* \(.*\)/\ →\ \1/' | |
} | |
export PS1='\[\e[1;37m\][\[\e[1;35m\]\u\[\e[1;37m\]:\[\e[1;36m\]\w\[\e[1;33m\]$(parse_git_branch)\[\e[1;37m\]]$ \[\e[0m\]' |
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
#!/usr/bin/env sh | |
brew update | |
brew upgrade ruby-build | |
rbenv install 2.0.0-p247 | |
rbenv global 2.0.0-p247 | |
ruby -v |
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
/** | |
* redirect javascript bookmarklet | |
*/ | |
// javascript:location.href='http://example.com/?uri='+encodeURIComponent(location.href) | |
/** | |
* bookmarklet loaded on site | |
*/ | |
(function(){ |
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
Show hidden characters
{ | |
"auto_indent": true, | |
"color_scheme": "Packages/User/SublimeLinter/Monokai (SL).tmTheme", | |
"draw_indent_guides": true, | |
"file_exclude_patterns": | |
[ | |
"*.pyc", | |
"*.pyo", | |
"*.exe", | |
"*.dll", |
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
/** | |
* Two-way data binding for contenteditable elements with ng-model. | |
* @example | |
* <p contenteditable="true" ng-model="text"></p> | |
*/ | |
app.directive('contenteditable', function() { | |
return { | |
require: '?ngModel', | |
link: function(scope, element, attrs, ctrl) { |
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
/** | |
* Sets focus to this element if the value of focus-me is true. | |
* @example | |
* <a ng-click="addName=true">add name</a> | |
* <input ng-show="addName" type="text" ng-model="name" focus-me="{{addName}}" /> | |
*/ | |
app.directive('focusMe', ['$timeout', function($timeout) { | |
return { | |
scope: { trigger: '@focusMe' }, | |
link: function(scope, element) { |
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
/* | |
* A simple Gravatar Directive | |
* @example | |
* <gravatar-image email="[email protected]" size="50"></gravatar-image> | |
*/ | |
app.directive('gravatarImage', function () { | |
return { | |
restrict: 'AE', | |
replace: true, | |
required: 'email', |
OlderNewer