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
/** | |
* fiddle.log() | |
* | |
* An alternative to console.log that will output log items within the window; | |
* written primarily for use with Javascript-only JSFiddles | |
* | |
* https://gist.github.com/onecrayon/8cb83d129e971b6bfec9 | |
* | |
* Copyright 2014 Ian Beck, released under an MIT license | |
*/ |
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"?> | |
<settings> | |
<language id="com.onecrayon.less-sass-standin"> | |
<root-zone>language-root.css</root-zone> | |
<name>LESS/SASS (shim)</name> | |
<detectors> | |
<extension>less</extension> | |
<extension>scss</extension> |
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
{ | |
// Keybindings to emulate Postbox defaults in MailMate | |
// From: http://www.postbox-inc.com/support/postbox_shortcuts | |
// Created by Ian Beck <http://beckism.com> | |
"f" = "nextMessage:"; | |
"b" = "previousMessage:"; | |
"n" = "nextUnreadMessage:"; | |
"p" = "previousUnreadMessage:"; | |
"T" = "nextUnreadThread:"; |
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/python | |
# -*- coding: utf-8 -*- | |
''' | |
This script parses a text file of tweets (generated by [IFTTT][1], | |
for instance) and sorts them into files by month. You can run it | |
manually from the command line: | |
cd /path/to/containing/folder | |
./archive-tweets.py /path/to/@username.txt |
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
// Fool the script into thinking Cordova is running (since we don't actually need it for webOS) | |
var cordova = {}; | |
// Add our deviceready event | |
document.addEventListener('DOMContentLoaded', function () { | |
// fire deviceready event; taken straight from phonegap-iphone | |
// put on a different stack so it always fires after DOMContentLoaded | |
window.setTimeout(function () { | |
var e = document.createEvent('Events'); | |
e.initEvent('deviceready'); |
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
/* | |
@theme Monokaffee | |
@override-placeholders html, css, js, php | |
*/ | |
@base { | |
color: #F8F8F2; | |
background-color: #272822; | |
insertion-point-color: #F8F8F2; | |
selection-background-color: #49483E; |
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
bundle = [NSBundle bundleWithIdentifier:@'com.onecrayon.tea.espresso'] | |
defaults = [NSUserDefaults standardUserDefaults] | |
[defaults registerDefaults:[NSDictionary dictionaryWithContentsOfFile:[bundle pathForResource:@'Defaults' ofType:@'plist']]] |
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
<?php | |
/* | |
Script for converting a Yahoo Pipe's homepage URL into something more sensible | |
Requires cURL to be enabled | |
*/ | |
// CHANGE THESE VARIABLES | |
// In the link http://pipes.yahoo.com/pipes/pipe.run?_id=uCxBbzww3hGB9ClS6ycw5g&_render=php | |
// the pipe ID is uCxBbzww3hGB9ClS6ycw5g (everything after _id= and before &_render | |
$pipe_id = ''; |
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
.clearfix { | |
zoom: 1; | |
} | |
.clearfix:after { | |
content: "."; | |
display: block; | |
height: 0; | |
clear: both; | |
visibility: 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
html { | |
height: 100%; | |
overflow: auto; | |
} | |
body { | |
height: 100%; | |
text-align: center; | |
} |
NewerOlder