View gist:80240
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> | |
<head> | |
<title>.htaccess Editor</title> | |
</head> | |
<body> | |
<center> | |
<br /><br /> | |
<h1>.htaccess Editor</h1> | |
<br /> | |
<b>This is a php based .htaccess editor. Its probably a bad idea. but at least you have to be from localhost.</b> |
View minusw3schools.user.js
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
// ==UserScript== | |
// @include http://www.google.*/ | |
// @include http://www.google.*/search* | |
// @include http://www.bing.com/ | |
// @include http://www.bing.com/search* | |
// @include http://www.yahoo.com/ | |
// @include http://search.yahoo.com/search* | |
// ==/UserScript== | |
document.querySelector('input[name=q], input[name=p]').value = " -w3schools"; |
View Cloning objects
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
// http://oranlooney.com/functional-javascript/ | |
function Clone() { } | |
function clone(obj) { | |
Clone.prototype = obj; | |
return new Clone(); | |
} | |
Food = function(type, slices){ | |
this.type = type; | |
this.slices= slices; |
View gist:1003863
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
With your Chromebook order from Gilt, you'll also receive a limited-edition Chromebook sleeve designed by Rickshaw. Sleeve will be shipped separately. | |
• 12.1" (1280x800) Display | |
• 3.26 lbs / 1.48 kg | |
• Up to 8.5 hours of continuous usage* | |
• Intel Dual-Core Processor | |
• Built in dual-band Wi-Fi and World-mode 3G** | |
• HD Webcam | |
• 2 USB 2.0 ports | |
• 4-in-1 memory card slot |
View deamontask.php
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 | |
// http://bakery.cakephp.org/articles/reconbot/2008/08/26/daemontask | |
class DaemonTask extends Shell { | |
function execute($prefix = '') { | |
//the key the pid is stored with - default to just 'pid' | |
$pidstring = $prefix . 'pid'; | |
if(!Cache::read($pidstring)){ | |
Cache::write($pidstring, getmypid(), 3600); | |
}else{ |
View gist:1183409
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
" Make home more useful | |
map <Home> ^ | |
imap <Home> <Esc>^i | |
" stupid hack to make screen a little friendlier on systems where it wont autodetect what's running | |
let &titlestring = "vim" | |
if &term == "screen" | |
set t_ts=^[k | |
set t_fs=^[\ | |
endif |
View relayUPD.js
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
var dgram = require('dgram'); | |
var relay = function(port, dest){ | |
var server = dgram.createSocket('udp4'); | |
var client = dgram.createSocket('udp4'); | |
var clients = []; | |
if(!Array.isArray(dest)){ | |
dest = [ dest ]; |
View index.html
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> | |
<meta http-equiv="Content-type" content="text/html; charset=utf-8"> | |
<title>Mobile Patent Suits</title> | |
<script type="text/javascript" src="http://mbostock.github.com/d3/d3.js"></script> | |
<style type="text/css"> | |
path.link { | |
fill: none; |
View node.conf
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
description "node server" | |
start on filesystem or runlevel [2345] | |
stop on runlevel [!2345] | |
respawn | |
respawn limit 10 5 | |
umask 022 | |
script |
View camera.js
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
// jquery and underdscore and backbone.js for now anyway | |
function(){ | |
Camera = function(opt){ | |
opt = opt || {}; | |
this.x = opt.x || 640; | |
this.y = opt.y || 480; |
OlderNewer