Skip to content

Instantly share code, notes, and snippets.

@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;
// 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
<% 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 ()
var A = B = C = null;
jsface.def({
cls: 'A',
as: function(){
return {
A: function(){
console.log('A > constructor');
},
hello: function(){
#!/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);
@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,