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
/** | |
* Define a module with optional dependencies. | |
* | |
* @function | |
* @param {String} id Optional module ID. If this is omitted, no module is defined and instead <code>factory</code> is called immediately. | |
* @param {Array} dependencies Optional list of module IDs on which this module depends. | |
* @param {Function} factory The module body. The function is called with arguments matching the given dependencies, if any. | |
* @return {Function} The module body with dependencies injected. | |
*/ | |
var define = (function() { |
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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 python | |
# Simple Image Diffs | |
# ================== | |
# | |
# How to Install | |
# -------------- | |
# | |
# Download the script somewhere on $PATH as 'simple-imagediff' with +x: | |
# |
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
# See http://www.rabbitmq.com/ssl.html | |
# | |
# (c) Stan Angeloff / http://www.gnu.org/licenses/agpl-3.0.html | |
SHELL := /bin/bash | |
HOSTNAME ?= $(shell hostname) | |
PASSPHRASE ?= $(shell cat /dev/urandom | tr -dc 'a-zA-Z0-9' | fold -w 32 | head -n 1) | |
PASSPHRASE_FILE = $(HOSTNAME)/.passphrase |
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 'shellwords' | |
on_stylesheet_saved do |filename| | |
script = File.dirname(__FILE__) + '/_scripts/join-media-queries.php' | |
system('php -q ' + Shellwords.escape(script) + ' -i ' + Shellwords.escape(filename)) | |
end |
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
; AutoHotkey script, download from: | |
; http://www.autohotkey.com/ | |
; NOTE: Save this file with Windows line endings i.e. \r\n | |
; | |
cmd_line := "C:\bin\cygwin\bin\mintty.exe /bin/zsh --login" | |
wnd_class := "ahk_class mintty" | |
#c:: |
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
Add space to extent_test_chars to have FontAwesome being recognized. | |
Fixes: | |
$ urxvt -fn "xft:FontAwesome" | |
urxvt: unable to calculate font width for 'FontAwesome:minspace=True', ignoring. | |
urxvt: unable to load base fontset, please specify a valid one using -fn, aborting. | |
Posted to upstream mailinglist: |
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 | |
curl -sSL 'https://www.fibank.bg/bg/jilishten-kredit-pravo-na-izbor/page/3467' | \ | |
pup -p '#AIRResults json{}' | \ | |
jq '. as $page | $page | ( [ .[].children[] | select(has("children")) ] | map(.["children"][]["text"]) ) as $list | ( $list | [ range(0; $list | length; 2) | { ($list[.]): $list[(. + 1)] } ] | add ) as $currencies | [{ ($page[0].children[0].text): ($page[0].children[1].text) }, $currencies] | add' |
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 | |
BOLD="\033[1m" | |
_BOLD="\033[22m" | |
RED="\033[31m" | |
YELLOW="\033[33m" | |
GREEN="\033[32m" | |
RESET="\033[39m" | |
range=$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
const curry = (fx) => { | |
const arity = fx.length; | |
return function f1(...args) { | |
return args.length >= arity ? fx.apply(null, args) : function f2(...args2) { | |
return f1.apply(null, args.concat(args2)); | |
}; | |
}; | |
}; |
NewerOlder