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
# Script to input a list of npm dependency name and pull relevant information for each one | |
# and generate a csv list. | |
import sys | |
import requests | |
from bs4 import BeautifulSoup | |
import pandas | |
if len(sys.argv) != 3: | |
print 'Please specify two command line arguments:' |
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
import UIKit | |
protocol ViewStateType { | |
var title: String { get set } | |
init() | |
} | |
protocol BaseViewDelegate: class { | |
associatedtype BaseViewType |
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
for branch_name in `git branch --list|sed 's/\*//g'`; | |
do | |
printf "\nWould you like to delete \e[33;4m"$branch_name"\033[0m? y for yes, n for no\n" | |
read answer | |
if [[ $answer == "y" ]]; then | |
git branch -D $branch_name | |
fi | |
done |
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
// GET /content/order-complete-checks?action=:action&produtId=:productId | |
// :action - bid-placed|bid-matched|ask-palced|ask-matched|spo-bid-placed | |
// :productId - product ID | |
{ | |
"data": [{ | |
"type": "order-complete-checks", | |
"attributes": { | |
"requiresManualChecks": true, |
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
// | |
// NSTimeInterval+HourMinuteSecondString.swift | |
// Companion | |
// | |
// Created by Josh Sklar on 4/26/16. | |
// Copyright © 2016 Companion. All rights reserved. | |
// | |
import Foundation |
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
- (void)someMethodThatDoesATimeIntensiveTaskWithCompletionBlock:(void (^)(void))block | |
{ | |
dispatch_async(dispatch_get_global_queue(DISPATCH_QUEUE_PRIORITY_DEFAULT, 0ul), ^{ | |
while (someCondition) { | |
NSErorr *error; | |
// Do the time intensive task here, passing the error object along | |
if (error) { |