Skip to content

Instantly share code, notes, and snippets.

@tnhu
tnhu / snow.js
Created January 2, 2010 09:46
snow script
// http://www.3site.eu/examples/snow/
// http://www.3site.eu/examples/snow/snow.js
// http://www.3site.eu/examples/snow/snow.css
document.addEventListener("DOMContentLoaded", function snow() {
// (C) Andrea Giammarchi - Mit Style License
// Happy Holidays by WebReflection!
for (var
offsetHeight = document.documentElement.offsetHeight,
offsetWidth = document.documentElement.offsetWidth,
#!/usr/bin/python
import httplib, urllib, sys
import os
import fnmatch
def googleClosureCompiler(rpath, wpath):
f = open(rpath, 'r')
s = f.readlines()
s = "".join(s);
var A = B = C = null;
jsface.def({
cls: 'A',
as: function(){
return {
A: function(){
console.log('A > constructor');
},
hello: function(){
<% if (!$isPost) %>
<div id="modal-content">
<div cstyle="width: 500px;">
<h2><% i18n %>We appreciate your feedback.<% /i18n %></h2>
</div>
<script type="text/javascript">
E3.include('/javascripts/form-utils.js',
{
onload: function ()
// JS QuickTags version 1.3.1
//
// Copyright (c) 2002-2008 Alex King
// http://alexking.org/projects/js-quicktags
//
// Thanks to Greg Heo <greg@node79.com> for his changes
// to support multiple toolbars per page.
//
// Licensed under the LGPL license
// http://www.gnu.org/copyleft/lesser.html
@tnhu
tnhu / js_quicktags.html
Created May 3, 2011 00:19
js_quicktags html
<html lang="en">
<head>
<meta http-equiv="content-type" content="text/html; charset=utf-8" />
<title>Quick HTML Editor</title>
<script src="https://gist.github.com/raw/952545/6d241920c58826abd70e7775270c54cf21d7190e/js_quicktags.js" type="text/javascript"></script>
<style>
textarea {
display: block;
position: fixed;
top: 55px;
@tnhu
tnhu / index.html
Created May 3, 2011 18:50
JavaScript Beautifier
<!DOCTYPE html>
<!--[if lt IE 7 ]> <html lang="en-us" dir="ltr" class="ie ie6"> <![endif]-->
<!--[if IE 7 ]> <html lang="en-us" dir="ltr" class="ie ie7"> <![endif]-->
<!--[if IE 8 ]> <html lang="en-us" dir="ltr" class="ie ie8"> <![endif]-->
<!--[if IE 9 ]> <html lang="en-us" dir="ltr" class="ie ie9"> <![endif]-->
<!--[if (gt IE 9)|!(IE)]><!--> <html lang="en-us" dir="ltr"> <!--<![endif]-->
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Online javascript beautifier</title>
<style type="text/css">
@tnhu
tnhu / learning_resources.txt
Created June 14, 2011 06:11 — forked from nathansmith/web-design-development-learning-resources.md
Resources for learning web design & front-end development
Resources for learning web design & front-end development:
================================================================================
**ONLINE**
Design
> http://52weeksofux.com
> http://thedesigncubicle.com
@tnhu
tnhu / gist:1331813
Created November 1, 2011 20:31 — forked from lucasfais/gist:1207002
Sublime Text 2 - Useful Shortcuts

Sublime Text 2 – Useful Shortcuts (Mac OS X)

General

⌘T go to file
⌘⌃P go to project
⌘R go to methods
⌃G go to line
⌘KB toggle side bar
⌘⇧P command prompt
@tnhu
tnhu / LICENSE.txt
Created December 21, 2011 15:27 — forked from azproduction/LICENSE.txt
Simple argv parser in 100 bytes
DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE
Version 2, December 2004
Copyright (C) 2011 Mikhail Davydov
Everyone is permitted to copy and distribute verbatim or modified
copies of this license document, and changing it is allowed as long
as the name is changed.
DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE