Skip to content

Instantly share code, notes, and snippets.

$(".container_12").attr("width") === undefined
$(".container_12").attr("width", "200px")
$(".container_12").css("width", "200px")
@jwalsh
jwalsh / api.js
Created August 15, 2011 20:35 — forked from aaronpowell/api.js
Q6 - What's old is new
var Person = function(name) {
this.name = name;
}
Person.prototype.sayHello = function() {
console.log('Hello, my name is ' + this.name);
}
abl-mode 0.9.0 available Python TDD minor mode
ac-ja 0.0.1 available auto-complete-mode source for Japanese
ac-slime 0.1 available An auto-complete source using slime completions
ace-jump-mode 1.0 available a quick cursor location minor mode for emacs
ahg 0.99 available Alberto's Emacs interface for Mercurial (Hg)
all 1.0 available Edit all lines matching a given regexp
alpha 1.0 available increase frame transparency
android-mode 0.1 available Minor mode for Android application development
anything 1.287 available open anything / QuickSilver-like candidate-selection framework
anything-R 0.1.2010 available anything-sources and some utilities for GNU R.
;; http://technomancy.us/153
(require 'package)
(add-to-list 'package-archives
'("marmalade" . "http://marmalade-repo.org/packages/") t)
(package-initialize)
(when (not package-archive-contents)
(package-refresh-contents))
;; http://technomancy.us/153
(require 'package)
(add-to-list 'package-archives
'("marmalade" . "http://marmalade-repo.org/packages/") t)
(package-initialize)
(when (not package-archive-contents)
(package-refresh-contents))
<html>
<head>
<script>var start = new Date();</script>
<script type="text/javascript" src="http://a.cmcdn.com/places/static/hmmm/bundles/head_gzip-ef4997e1fead1778c51a72b3912eb8e6.js"></script> <link rel="shortcut icon" href="http://www.classmates.com/favicon.ico"/> <link rel="stylesheet" type="text/css" href="http://a.cmcdn.com/places/static/hmmm/bundles/memorylane/canvasMemoryLaneCSS3_gzip-ce1e555f716b290648b6b9e33a7b2f41.css"/>
</head>
<body>
<script type="text/javascript" src="http://a.cmcdn.com/places/static/hmmm/bundles/memorylane/canvas_gzip-2e5912a7fb0fc408ae37bf5d628fdc72.js"></script>
<script>document.write(new Date() - start)</script>
</body>
</html>
(ns clojuredojo.core)
(defn palindrome-detector [thing] (= (reverse thing) (seq thing)) )
(def __ palindrome-detector)
(false? (__ '(1 2 3 4 5)))
(true? (__ "racecar"))
(true? (__ [:foo :bar :foo]))
(true? (__ '(1 1 3 3 1 1)))
#!/bin/sh
# 1. Define a base set of credentials with APPID and APPSECRET
. ~/.facebookrc
# APPID=
# APPSECRET=
function init {
echo
echo
<html>
<head>
<title>Script injection</title>
<script>
var script = document.createElement('script');
script.innerHTML = 'alert(1)';
// No dependency management
var loader = document.getElementsByTagName('script')[0];
loader.appendChild(script);
</script>
@jwalsh
jwalsh / hack.sh
Created April 1, 2012 04:00 — forked from erikh/hack.sh
OSX For Hackers
#!/usr/bin/env sh
##
# This is script with usefull tips taken from:
# https://github.com/mathiasbynens/dotfiles/blob/master/.osx
#
# install it:
# curl -sL https://raw.github.com/gist/2108403/hack.sh | sh
#