Skip to content

Instantly share code, notes, and snippets.

@savage69kr
savage69kr / psextendscriptexample.js
Created June 5, 2011 05:40 — forked from aral/psextendscriptexample.js
Using ExtendScript to save out multiple resolution images from Photoshop (with unsharp mask)
/*
The original files are 960x319.
Image sizes to save:
* 800x266 - Retina for 480x320 resolution (400 logical pixel wide panel areas)
* 740x246 - Desktop and iPad
* 616x205 - Retina for 320x480 resolution (308 logical pixel wide panel areas)
* 400x133 - 480x320 resolution
* 308x102 - 320x480 resolution
@savage69kr
savage69kr / Showdown.as
Created June 23, 2011 08:18 — forked from cstrahan/Showdown.as
Showdown.as: An AS3 port of John Fraser's showdown.js
//
// Showdown.as -- An ActionScript port of showdown.js
//
// Copyright (c) 2010 Charles Strahan.
//
// Original Showdown Copyright (c) 2007 John Fraser.
// <http://attacklab.net/showdown/>
//
// Original Markdown Copyright (c) 2004-2005 John Gruber
// <http://daringfireball.net/projects/markdown/>
@savage69kr
savage69kr / export blender model to javascript object
Created June 24, 2011 03:48 — forked from schell/export blender model to javascript object
Exports the selected blender object to a javascript object (through the clipboard)
#!BPY
"""
Name: 'isom object'
Blender: 250
Group: 'Export'
Tooltip: 'Exports currently selected object as js file for use with WebGL'
Author: Schell Scivally (efnx.com)
"""
@savage69kr
savage69kr / README
Created August 5, 2011 04:58 — forked from mashihua/README
Cloud9 IED http_digest_auth Patch
Add http_digest_auth for Cloud9 IED.
Step:
1.git clone https://github.com/ajaxorg/cloud9.git
2.git submodule update --init --recursive
3.git apply cloud9.patch
4.bin/cloud9.sh -c config.js
5.open the url http://127.0.0.1:3000/
6.when prompt the authorization,username is admin and password is admin.
@savage69kr
savage69kr / bbcurl.sh
Created August 18, 2011 14:10 — forked from alexkingorg/bbcurl.sh
View source from a URL in BBEdit
bbcurl () { curl $1 | open -a BBEdit -f; }
/* simple */
document.body.appendChild(
Fox.makeTable([
"+---+---+---+",
"|A |B |C |",
"| +---+---+",
"| |D |E |",
"| +---+ |",
"| |F | |",
"+---+---+---+",
@savage69kr
savage69kr / es6proxy.htm
Created September 8, 2011 07:56 — forked from nzakas/es6proxy.htm
Example of ES6 Proxy
<!DOCTYPE html>
<!--
This is a simple experiment relying on ECMAScript 6 Proxies. To try this out,
use Aurora (http://www.mozilla.org/en-US/firefox/channel/).
The goal was to create a HTML writer where the method names were really just
the HTML tags names, but without manually creating each method. This uses
a Proxy to create a shell to an underlying writer object that checks each
method name to see if it's in a list of known tags.
@savage69kr
savage69kr / extensions.js
Created September 13, 2011 12:53 — forked from firejune/extensions.js
The minimap provides you with a new way to visualize your site.
/** pQuery! LOL **/
Object.extend($, Prototype);
Object.extend($, Object);
/**
* Returns window dimensions and scroll positions
* @author Firejune<to@firejune.com>
* @license MIT
*/
@savage69kr
savage69kr / cocoa-hello-world2.js
Created September 15, 2011 09:15 — forked from indexzero/cocoa-hello-world2.js
Creating a Cocoa GUI window with NodObjC, with a proper Menu, dock icon, and NSApplicationDelegate.
// This example adapted from Matt Gallagher's "Minimalist Cocoa Programming"
// blog article:
// http://cocoawithlove.com/2010/09/minimalist-cocoa-programming.html
var $ = require('NodObjC')
$.import('Cocoa')
var pool = $.NSAutoreleasePool('alloc')('init')
, app = $.NSApplication('sharedApplication')
@savage69kr
savage69kr / Makefile
Created September 29, 2011 01:42 — forked from utaal/Makefile
webserver using libuv
webserver: webserver.c libuv/uv.a http-parser/http_parser.o
gcc -I libuv/include \
-lrt -lm -lpthread -o \
webserver webserver.c \
libuv/uv.a http-parser/http_parser.o
libuv/uv.a:
$(MAKE) -C libuv
http-parser/http_parser.o: