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
$(".container_12").attr("width") === undefined | |
$(".container_12").attr("width", "200px") | |
$(".container_12").css("width", "200px") |
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 Person = function(name) { | |
this.name = name; | |
} | |
Person.prototype.sayHello = function() { | |
console.log('Hello, my name is ' + this.name); | |
} |
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
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. |
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://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)) |
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://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)) |
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> | |
<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> |
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
(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))) |
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
#!/bin/sh | |
# 1. Define a base set of credentials with APPID and APPSECRET | |
. ~/.facebookrc | |
# APPID= | |
# APPSECRET= | |
function init { | |
echo | |
echo |
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>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> |
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
#!/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 | |
# |