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
set nocompatible " be iMproved, required | |
filetype off " required | |
" set the runtime path to include Vundle and initialize | |
set rtp+=~/.vim/bundle/Vundle.vim | |
call vundle#begin() | |
" let Vundle manage Vundle, required | |
Plugin 'gmarik/Vundle.vim' | |
Plugin 'glidenote/newdayone.vim' |
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
;; Anything you type in here will be executed | |
;; immediately with the results shown on the | |
;; right. | |
(import 'java.util.UUID) | |
(UUID/randomUUID) | |
(defn who-are-you [input] | |
(cond |
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 async-tea-party.core | |
(:require [clojure.core.async :as async]) | |
) | |
(def tea-channel (async/chan 10)) | |
(async/>!! tea-channel :cup-of-tea) | |
(async/<!! tea-channel) |
Supplemental evil-mode key-bindings to Emacs org-mode. This is a work in progress, expect improvements and don’t be afraid to contribute patches.
- org-mode, git://repo.or.cz/org-mode.git
- evil-mode, git://gitorious.org/evil/evil.git
- evil-leader, git://github.com/cofi/evil-leader.git
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> | |
<style> | |
header { | |
height: 30px; | |
background: red; | |
} | |
article { | |
margin-left: 150px; |
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> | |
<style> | |
header { | |
height: 30px; | |
background: red; | |
} | |
article { | |
margin-left: 150px; |
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
// This doesn't work like you might think, because the value of `i` never | |
// gets locked in. Instead, every link, when clicked (well after the loop | |
// has finished executing), alerts the total number of elements, because | |
// that's what the value of `i` actually is at that point. | |
var elems = document.getElementsByTagName( 'a' ); | |
for ( var i = 0; i < elems.length; i++ ) { | |
elems[ i ].addEventListener( 'click', function(e){ |
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
fragment JayFragment on Account { | |
email, | |
id | |
} | |
query UseFragment { | |
jay: account(id: 1) { | |
...JayFragment | |
} | |
} |
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
const autoClickBig = () => { | |
const bigCookie = $('#bigCookie'); | |
const bigClickInterval = setInterval(() => bigCookie.click(), 0); | |
} | |
// Vanilla auto-click golden | |
setInterval(() => { | |
const $shimmer = document.querySelector('div.shimmer'); | |
$shimmer && $shimmer.click(); | |
}, 1000) |
OlderNewer