Skip to content

Instantly share code, notes, and snippets.

View bkimminich's full-sized avatar

Björn Kimminich bkimminich

View GitHub Profile
@traviskaufman
traviskaufman / jasmine-this-vars.md
Last active January 4, 2025 16:49
Better Jasmine Tests With `this`

Better Jasmine Tests With this

On the Refinery29 Mobile Web Team, codenamed "Bicycle", all of our unit tests are written using Jasmine, an awesome BDD library written by Pivotal Labs. We recently switched how we set up data for tests from declaring and assigning to closures, to assigning properties to each test case's this object, and we've seen some awesome benefits from doing such.

The old way

Up until recently, a typical unit test for us looked something like this:

describe('views.Card', function() {
@bkimminich
bkimminich / XXXX2.PAS
Created February 17, 2014 06:54
XXXX 2 - The ultimative DOOM 2-Clone
PROGRAM XXXX;
{********************************************
* X X X X 2 - The ultimative DOOM 2-Clone *
* *
* Author: B.M”ller *
* Publisher: B™MMSOFT (Germany) *
* *
* Date of begin: 14.04.95 *
* Date of end : __.__.__ *
@garystafford
garystafford / git_proxy_functions_min_v2.sh
Last active December 12, 2017 20:40
v2 of compact version of https://gist.github.com/garystafford/8128922. v2 Gist for blog post 'Revised Configuration of Git for Windows on a Corporate Network with Vagrant'. Easily turn proxy-related settings on and off for Git for Windows. 1) Add these functions to your ~\.bashrc file, 2) Open new Git Bash interactive shell window and execute fu…
function proxy_on(){
export HTTP_PROXY="http://$USERNAME:$PASSWORD@$PROXY_SERVER.$USERDNSDOMAIN:$PROXY_PORT"
export HTTPS_PROXY="$HTTP_PROXY" FTP_PROXY="$HTTP_PROXY" ALL_PROXY="$HTTP_PROXY" \
NO_PROXY="localhost,127.0.0.1,*.$USERDNSDOMAIN" \
GIT_CURL_VERBOSE=1 GIT_SSL_NO_VERIFY=1
echo -e "\nProxy-related environment variables set."
}
function proxy_off(){
variables=( "HTTP_PROXY" "HTTPS_PROXY" "FTP_PROXY" "ALL_PROXY" \
@jumanjiman
jumanjiman / start.sh
Last active December 26, 2015 05:59
start script for coreos EC2 instance to launch a docker container
#!/bin/bash
# 1. Post a shell script at a gist url.
# 2. Paste the URL to the gist in EC2 coreos instance user data as 1st line of user data.
# 3. Launch coreos instance.
#
# For details, see:
# https://github.com/coreos/init/blob/402cc75e0f5f230f0aa9c83947e9c262ee85cb1f/bin/coreos-c10n#L25-37
function log() {
@scottksmith95
scottksmith95 / index.html
Last active December 14, 2015 00:39
How to use the coderbits profile widget on your website or blog
<!-- Include the following CSS and Javascript in your page -->
<link href="https://coderbits.com/content/widget/coderbits.css" media="all" rel="stylesheet" type="text/css">
<script src="https://coderbits.com/content/widget/coderbits.js"></script>
<!-- Place the following in the page where you want the widget to render and set your username -->
<section id="coderbits" data-coderbits-username="<your username>"></section>
@endolith
endolith / Has weird right-to-left characters.txt
Last active June 26, 2025 19:13
Unicode kaomoji smileys emoticons emoji
ּ_בּ
בּ_בּ
טּ_טּ
כּ‗כּ
לּ_לּ
מּ_מּ
סּ_סּ
תּ_תּ
٩(×̯×)۶
٩(̾●̮̮̃̾•̃̾)۶