This file contains hidden or 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 is the default .slate file. | |
# If no ~/.slate file exists this is the file that will be used. | |
config defaultToCurrentScreen true | |
config windowHintsShowIcons true | |
config windowHintsIgnoreHiddenWindows false | |
config windowHintsSpread true | |
config nudgePercentOf screenSize | |
config resizePercentOf screenSize | |
config windowHintsDuration 10000 |
This file contains hidden or 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
private func nestedEquality<T>(lhs: [[T]], _ rhs: [[T]], equal: ([T], [T]) -> Bool) -> Bool { | |
if lhs.count != rhs.count { | |
return false | |
} | |
for var i = 0; i < lhs.count; i++ { | |
if false == equal(lhs[i], rhs[i]) { | |
return false | |
} | |
} |
This file contains hidden or 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
uint32_t test[2] = { 0xFF28A9C9, 0xAC912F9D }; | |
uint8_t *test2 = reinterpret_cast<uint8_t *>(test); |
This file contains hidden or 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
print '1' | |
print '2' | |
print 'Fizz' | |
print '4' | |
print 'Buzz' | |
print 'Fizz' | |
print '7' | |
print '8' | |
print 'Fizz' | |
print 'Buzz' |
This file contains hidden or 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 'net/http' | |
require 'uri' | |
require 'json' | |
BASE_URL = 'https://itunes.apple.com/search' | |
BUNDLE_ID = nil | |
STORE_COUNTRY_CODE = 'us' | |
LIMIT = 200 | |
# Set to true to try combining every keyword |
This file contains hidden or 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
#import <Foundation/Foundation.h> | |
int main (int argc, const char * argv[]) | |
{ | |
NSDateFormatter *dateFormatter = [[NSDateFormatter alloc] init]; | |
dateFormatter.dateFormat = @"YYYY"; | |
NSDate *date = [NSDate dateWithTimeIntervalSince1970:1419872056]; | |
NSLog (@"%@", [dateFormatter stringFromDate:date]); // 2015 | |
This file contains hidden or 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
POST /teams/1829/members?invite_id=481293 HTTP/1.1 | |
Content-Type: application/json | |
Host: example.com | |
Connection: close | |
Content-Length: 18 | |
{"user_id":214293} |
This file contains hidden or 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
PATCH /invites/:id HTTP/1.1 | |
Content-Type: application/json | |
Host: example.com | |
Connection: close | |
Content-Length: 19 | |
{"accepted":true} |
This file contains hidden or 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
(function (window) { | |
"use strict"; | |
var isAtTheCorrectURL = location.href.indexOf("account/subscription/receipt/") !== -1; | |
if (!isAtTheCorrectURL) { | |
console.log("Please run this script at https://www.spotify.com/us/account/subscription/receipt/ after logging in"); | |
return; | |
} | |
var payments = document.querySelectorAll("#table-receipts > tbody > tr > td.receipt-price"); |
This file contains hidden or 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
// | |
// HTKVOMappingStrategy.h | |
// | |
// Created by Hugo Tunius on 16/02/14. | |
// Copyright (c) 2014 Hugo Tunius. All rights reserved. | |
// | |
#import <Foundation/Foundation.h> | |
#import "HTMappingStrategy.h" |