This file contains hidden or 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
ls -1 *.html | awk '{print "<li><a href=\"" $1 "\">" $1 "</a></li>"}' > index.html |
This file contains hidden or 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(){var e=['section','article','aside','header','footer','nav','dialog','figure'];for(var i=0;i<e.length;i++)document.createElement(e[i])})(); |
This file contains hidden or 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
# -*- coding: utf-8 -*- | |
import re | |
_REPLACEMENTS = ( | |
('ffi\B', 'ffi', ), | |
('ff\B', 'ff', ), | |
('fi\B', 'fi', ), | |
('fl\B', 'fl', ), |
This file contains hidden or 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 lang="en"> | |
<head> | |
<meta http-equiv="Content-type" content="text/html; charset=utf-8" /> | |
<title>flat</title> | |
<style type="text/css" media="screen"> | |
*{margin:0;padding:0} | |
body{color:#000;font:600 400%/1.4em "Avenir";padding:1em} |
This file contains hidden or 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
svn st | grep "^?" | awk '{ print $2 }' | xargs svn add |
This file contains hidden or 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 | |
# See a demo: <http://www.vimeo.com/4195472> | |
# Here are the settings: <http://www.quicksnapper.com/sneeu/image/css-colour-convert-settings> | |
import os | |
import re | |
import sys | |
This file contains hidden or 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
class John(threading.Thread): | |
def __run__(self): | |
while True: | |
work = all_work.read() | |
if inverse(work) in self.complete_work: | |
self.grump() | |
work() | |
self.complete_work.append(work) |
This file contains hidden or 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
# Hello world: | |
print "Hello, World!" | |
# Print the numbers 1 to 10: | |
for i in range(1, 11): | |
print i | |
# Print the numbers less than 100, which are divisable by 3: |
This file contains hidden or 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
# | |
# Configuration File for JavaScript Lint 0.2.6 | |
# Developed by Matthias Miller (http://www.JavaScriptLint.com) | |
# | |
# This configuration file can be used to lint a collection of scripts, or to enable | |
# or disable warnings for scripts that are linted via the command line. | |
# | |
#### NOTE TO TEXTMATE BUNDLE USERS: | |
#### Feel free to experiment with enabling/disabling individual warnings to |
This file contains hidden or 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
<?php | |
abstract class Model { | |
static abstract function getFields(); | |
static function getFieldsForSQL() { | |
return implode(', ', self::getFields()); | |
} | |
static function getAll() { |
OlderNewer