Skip to content

Instantly share code, notes, and snippets.

const SCO_0x2a08 = [
"WRtdGxhdNru=",
"qdtdLmkdpG==",
"s1zCWQdcLwhcJHS=",
"W49aW5KDWQG=",
"iY7dVgX7",
"WO3dI1K=",
"qvhdGmo8W5u=",
"W400WQG9xW==",
"WRqqW4JcGci=",
@derryl
derryl / edges.json
Created February 11, 2020 23:28
sample edge dataset
{
"nodes": [
{
"id": 1,
"name": "TAG"
},
{
"id": 2,
"name": "PERSON"
},
@derryl
derryl / hugo-challenge-derryl.markdown
Created July 9, 2019 03:44
Hugo Challenge - Derryl
@derryl
derryl / iterm2.md
Created August 23, 2016 04:19
iterm2 cheatsheet

Tabs and Windows

Function Shortcut
Previous Tab + Left Arrow
Next Tab + Right Arrow
Go to Tab + Number
Go to Window + Option + Number
Go to Split Pane by Direction + Option + Arrow
Go to Split Pane by Order of Use + ] , + [
@derryl
derryl / Preferences.sublime-settings
Created January 26, 2016 08:29
Sublime Text 3 user settings
{
"binary_file_patterns":
[
"*jquery*",
"*lib/*.js",
"*compiled/*.js",
"*compiled/*.css",
"*dist/*",
"*temp/*",
"*png",
@derryl
derryl / get_top_instagram_hashtags.sh
Created January 22, 2016 07:24
Copies the current "Top 30" Instagram hashtags to your clipboard.
#!/bin/bash
# Copies the current "Top 30" Instagram hashtags to your clipboard.
# (This is the max. amount they'll allow you to post in a comment.)
# NOTE: You must have 'pup' installed (https://github.com/ericchiang/pup)
# brew install https://raw.githubusercontent.com/EricChiang/pup/master/pup.rb
URL="top-hashtags.com/instagram/"
@derryl
derryl / gist:7cdf9642397d68612d89
Created June 18, 2015 00:01
Vertical alignment mixins
// Vertically center objects of dynamic size
// Note: - correct mixins must be applied to both parent and child
// - if it doesn't work, check for conflicting styles on those elements
// Apply to container element
.contain-vertically-centered-content, .contain-vc {
&:before {
content: '';
display: inline-block;
height: 100%;
@derryl
derryl / killp.sh
Created November 20, 2013 19:03
A helpful function for "Fatal error: Port XX is already in use" issues.
# Usage: killp 35729
# killp 80
killp() {
PID=$(lsof -i:$1 | grep 'username' | awk '{print $2}')
if [ $PID ]; then
kill $PID;
fi
}
// User-Agent Header; see http://www.w3.org/Protocols/rfc2616/rfc2616-sec14.html#sec14.43
userAgent = [
NSString stringWithFormat:@"%@/%@ (%@; iOS %@; Scale/%0.2f)"
, [[[NSBundle mainBundle] infoDictionary] objectForKey:(__bridge NSString *)kCFBundleExecutableKey] ?: [[[NSBundle mainBundle] infoDictionary] objectForKey:(__bridge NSString *)kCFBundleIdentifierKey]
, (__bridge id)CFBundleGetValueForInfoDictionaryKey(CFBundleGetMainBundle()
, kCFBundleVersionKey) ?: [[[NSBundle mainBundle] infoDictionary] objectForKey:(__bridge NSString *)kCFBundleVersionKey]
, [[UIDevice currentDevice] model]
, [[UIDevice currentDevice] systemVersion]
, ([[UIScreen mainScreen] respondsToSelector:@selector(scale)] ? [[UIScreen mainScreen] scale] : 1.0f)
];
@derryl
derryl / gist:6893141
Last active December 25, 2015 01:09 — forked from tommymcglynn/gist:6892810
<html>
<head>
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.10.2/jquery.min.js"></script>
<script>
(function() {
var _apiHost = 'https://testflightapp.com'
$.ajax({
url: _apiHost+'/api/sdkinfo',