-
Copy and paste underscore.js into repl.it, and execute it.
-
Clear that text, then copy/paste whatever you find relevant from intro-to-underscore.js, probably starting with the data structures. Some of the later functions rely on previous work, so keep that in mind if you like to skip around.
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 python3 | |
import os | |
import sphinx_rtd_theme | |
from recommonmark.parser import CommonMarkParser | |
from recommonmark.transform import AutoStructify | |
extensions = [] | |
templates_path = ['_templates'] | |
source_suffix = ['.rst', '.md'] | |
source_parsers = { '.md': CommonMarkParser, } |
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-option -g prefix 'C-\' | |
unbind-key C-b | |
bind-key h select-pane -L | |
bind-key j select-pane -D | |
bind-key k select-pane -U | |
bind-key l select-pane -R | |
# Make sure that window creation commands keep my PWD | |
bind-key 'c' new-window -c '#{pane_current_path}' |
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
(require 'android) ; This is android.el from the sdk | |
(mapc (lambda (library) | |
(require library)) | |
'(java-custom android-mode)) | |
(add-hook 'gud-mode-hook | |
(lambda () | |
(add-to-list 'gud-jdb-classpath | |
"~/devel/mobil/android/android-sdk-linux/platforms/android-17/android.jar"))) |
This file has been truncated, but you can view the full file.
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 TimePicker = | |
/******/ (function(modules) { // webpackBootstrap | |
/******/ // The module cache | |
/******/ var installedModules = {}; | |
/******/ | |
/******/ // The require function | |
/******/ function __webpack_require__(moduleId) { | |
/******/ | |
/******/ // Check if module is in cache | |
/******/ if(installedModules[moduleId]) |
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/bash | |
# Get some helper functions | |
. git-sh-setup | |
# Go to the toplevel of the git directory | |
cd_to_toplevel | |
# If we're in the puppet modules, run the following, since they're specific to puppet | |
if [[ "$PWD" == "/etc/puppet/environments/production/modules"* ]] | |
then |
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
wikiparse.core> tstmap | |
{:front {:middletwo "m2", :middlethree "m3", :middleone :m1}, :back2 "b2", :back1 :b1} | |
wikiparse.core> (clojure.core.incubator/dissoc-in tstmap [:front :middletwo]) | |
{:front {:middlethree "m3", :middleone :m1}, :back2 "b2", :back1 :b1} |
This file has been truncated, but you can view the full file.
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
running: | |
org.wikibrain.Loader -l simple -s fetchlinks -s download -s dumploader -s redirects -s wikitext -s lucene -s phrases -s concepts -s universal -s wikidata -s spatial -s sr -c customized.conf | |
Mar 02, 2015 8:30:28 PM org.wikibrain.Loader <init> | |
INFO: pipeline keeping args: [-l, simple, -c, customized.conf] | |
Mar 02, 2015 8:30:28 PM org.wikibrain.core.lang.Language loadAllLanguages | |
INFO: loaded 285 languages | |
Mar 02, 2015 8:30:31 PM org.wikibrain.conf.Configurator registerProviders | |
INFO: configurator installed 70 providers for 37 classes |
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
/*! | |
* Chart.js | |
* http://chartjs.org/ | |
* Version: 1.0.1 | |
* | |
* Copyright 2015 Nick Downie | |
* Released under the MIT license | |
* https://github.com/nnnick/Chart.js/blob/master/LICENSE.md | |
*/ |
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
(defun hello-world (width height &optional (host "")) | |
(let* ((display (xlib:open-display host)) | |
(screen (first (xlib:display-roots display))) | |
(black (xlib:screen-black-pixel screen)) | |
(white (xlib:screen-white-pixel screen)) | |
(root-window (xlib:screen-root screen)) | |
(grackon (xlib:create-gcontext | |
:drawable root-window | |
:font "9x15bold" | |
:foreground white |
NewerOlder