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
module.exports = function(grunt) { | |
grunt.initConfig({ | |
watch: { | |
files: [ | |
'src/**/*.js', | |
'src/**/*.jsx' | |
], | |
tasks: ['browserify'] | |
}, | |
browserify: { |
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/python | |
# vim: fileencoding=utf-8 | |
u'''Translate YAML written text to graphviz dot language | |
Input YAML text like below: | |
--- | |
foo: |
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
#!/bin/bash | |
# Neocities provies an API for uploading files from ./public_html to your site | |
# | |
# Example Usage: | |
# $ USERNAME=username PASS=secret_pass bash upload_site.sh | |
function upload_file { | |
fullName=$1 | |
shortName=${fullName:2} |
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
var HelloView = Backbone.View.extend({ | |
initialize: function() { | |
this.listenTo(this.model, "change", this.render, this); | |
this.render(); | |
}, | |
render: function() { | |
var reactEl = React.createElement('div', {}, 'Hello, World!'); | |
ReactDOM.render(reactEl, this.el); | |
return this; | |
} |
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> | |
<head> | |
<meta charset="utf-8"> | |
<meta http-equiv="X-UA-Compatible" content="IE=edge"> | |
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no" /> | |
<meta name="apple-mobile-web-app-capable" content="yes"> | |
<title>Hello</title> | |
<!--<link href="style.css" rel="stylesheet">--> | |
<style> |
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
sudo killall VDCAssistant |
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
/** | |
* jQuery plugin to add a faux browser around some images | |
* Based off of http://cloudcannon.com/deconstructions/2014/11/21/flat-css-browser-wrapper.html | |
* | |
* Example usage: | |
* | |
* <body> | |
* <img class="fakeBrowser" src="http://example.com/image.jpg" | |
* </body> | |
* |
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
### Keybase proof | |
I hereby claim: | |
* I am rchrd2 on github. | |
* I am rchrd2 (https://keybase.io/rchrd2) on keybase. | |
* I have a public key whose fingerprint is A166 5BE1 E8F6 A2A3 BEC7 382A 8CCA 345A 01E9 EF4B | |
To claim this, I am signing this object: |
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
// Toaster AI v2 | |
// by Richard Caceres | |
// 11/12/09 | |
// | |
// Safety Precautions that could be put in place | |
// Overheating | |
// Description: Precautions to prevent the toaster from being on too long. | |
// Status: A solution is put in place where the toaster can only be on N seconds at a time. | |
// There is also a cool down period. | |
// |
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
# Add this to your ~/.bash_profile | |
# Disable pyc | |
export PYTHONDONTWRITEBYTECODE=x |