I hereby claim:
- I am artsabintsev on github.
- I am artsabintsev (https://keybase.io/artsabintsev) on keybase.
- I have a public key ASB0hPuTXmwimUDXQ6GL551uQb_azvka7u7h_RxlBQ9oKwo
To claim this, I am signing this object:
I hereby claim:
To claim this, I am signing this object:
| import Foundation | |
| typealias T = Int | |
| struct S { | |
| public static func f<T>(a: T, b: Int) { | |
| print(a, b) | |
| f(a: a, b: b) // Infinitely calls the f<t>{} method (e.g., creates infinite loop) | |
| } |
| # -*- coding: utf-8 -*- | |
| """ | |
| This script is forked originally from Dave Jeffery. The original implementation | |
| was very slow and deleted around 2 tweets per second. Making it multithreaded I | |
| am able to delete 30-50 tweets per second. | |
| @author: vik-y | |
| ---------------------------------------------------------------------------- | |
| This script will delete all of the tweets in the specified account. |
| ###################### | |
| # Variables | |
| ###################### | |
| FRAMEWORK_NAME="${PROJECT_NAME}" | |
| SIMULATOR_LIBRARY_PATH="${BUILD_DIR}/${CONFIGURATION}-iphonesimulator/${FRAMEWORK_NAME}.framework" | |
| DEVICE_LIBRARY_PATH="${BUILD_DIR}/${CONFIGURATION}-iphoneos/${FRAMEWORK_NAME}.framework" |
| PAYLOAD="{\"username\": \"Xcode Bot\", | |
| \"text\": \"${XCS_BOT_NAME} Status: ${XCS_INTEGRATION_RESULT}.\nErrors: ${XCS_ERROR_COUNT}\nWarnings: ${XCS_WARNING_COUNT}\nFailed Tests: ${XCS_TEST_FAILURE_COUNT}\nAnalyzer Issues: ${XCS_ANALYZER_WARNING_COUNT}\",\"icon_emoji\": \":robot_face:\"}" | |
| echo $PAYLOAD | |
| curl -X POST --data-urlencode "payload=${PAYLOAD}" https://hooks.slack.com/services/<slack_room_id> |
| extension SKTexture { | |
| /* FIXME | |
| This code breaks on iOS 8 (reference post) | |
| http://stackoverflow.com/questions/19243111/spritekit-sktexture-crash/19248293#19248293 | |
| */ | |
| convenience init(size: CGSize, firstColor: UIColor, lastColor: UIColor) { | |
| guard let gradientFilter = CIFilter(name: "CILinearGradient") else { | |
| self.init() |
| env EDITOR=nano crontab -e |
| import java.text.DecimalFormat; | |
| import java.util.Scanner; | |
| public class PayAmmount { | |
| public static void main(String[] args) { | |
| double payRate | |
| double hours; | |
| Scanner keyScanner = new Scanner(System.in); |
Encoding Strings
NSString *aString = @"Hello, iOS 7!"
NSString *encodedString = [NSString encodeBase64String:aString]
NSLog(@"Encoded String %@", encodedString) // returns 'SGVsbG8sIGlPUyA3IQ=='Decoding Strings
| // | |
| // GiftCardFlowLayout.m | |
| // ID.me Marketplace | |
| // | |
| // Created by Arthur Sabintsev on 9/7/14. | |
| // Copyright (c) 2014 ID.me, Inc. All rights reserved. | |
| // | |
| #import "GiftCardFlowLayout.h" |