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 python | |
""" This module consists of several classes that help with image management | |
and image manipulation. It also contains several functions that together | |
make up complete program, and therefore this module can be executed as a | |
script itself. It also contains a work-in-progress shell for performing | |
many of the available operations interactively. | |
@author: Cliff Braton | |
@contact: cliff.braton@codecompanion.org | |
""" |
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
function uri-encode { | |
echo "$(perl -MURI::Escape -e 'print uri_escape($ARGV[0]);' "$1")" | |
} | |
function google-image-search { | |
echo "https://www.google.com/search?q=$(uri-encode "$*")&safe=off&espv=210&es_sm=93&source=lnms&tbm=isch&sa=X&ei=5tSGUrn9G4my2wWlhYDIAQ&ved=0CAkQ_AUoAQ&biw=1360&bih=944" | |
} |
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
@for /r %i in (*.bc!) do @move "%~fi" "%~dpni" |
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
osascript -e 'tell application "Safari" to add reading list item "http://totl.net/"' |
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
Get-ChildItem "C:\" -recurse -force | |
| Where-Object { | |
$_.name -like ".*" | |
-and | |
$_.attributes -match 'Hidden' -eq $false | |
} | |
| Set-ItemProperty -Name Attributes -Value ([System.IO.FileAttributes]::Hidden) |
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
.flip-container { | |
perspective: 1000; | |
.flipper { | |
transition: 0.6s; /* all .4s ease-in-out */ | |
transform-style: preserve-3d; | |
position: relative; | |
} | |
.front, .back { | |
backface-visibility: hidden; | |
position: absolute; |
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> | |
<title><%= "Dynamic Dispatch" %></title> | |
<link rel='stylesheet' href='/stylesheets/application.css' /> | |
<script src='/components/jquery/jquery.min.js' type='text/javascript'></script> | |
<script src='/components/knockout/knockout.js' type='text/javascript'></script> | |
<script type='text/javascript'> | |
function GithubProjectViewModel() { |
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
using System.Linq; | |
using TweetSharp; | |
public class Example { | |
public static void Main(string[] args) { | |
// Get setting values | |
string consumerKey = Setting.TwitterConsumerKey.GetValue<string>(); | |
string consumerSecret = Setting.TwitterConsumerSecret.GetValue<string>(); |
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
/* CoffeeScript: | |
class Person | |
constructor: (@name, @age) -> | |
@createdAt = new Date() | |
isAdult: => @age > 18 | |
talk: => console.debug("Hello. My name is #{@name} and I'm #{@age} years old.") | |
*/ |
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
export rvm_path="$HOME/.rvm" | |
export rvm_pretty_print_flag=1 | |
export rvm_install_on_use_flag=1 | |
export rvm_gemset_create_on_use_flag=1 | |
export rvm_make_flags="-j2" | |
export rvm_trust_rvmrcs_flag=1 |