Skip to content

Instantly share code, notes, and snippets.

@tacryt-socryp
tacryt-socryp / blockstack-verification
Created September 4, 2017 03:10
Blockstack Verification
Verifying that "loganallenc.id" is my Blockstack ID. https://onename.com/loganallenc
@tacryt-socryp
tacryt-socryp / touchID
Last active July 28, 2017 18:07 — forked from jstart/touchID
Touch ID Example
LAContext *myContext = [[LAContext alloc] init];
NSError *authError = nil;
if ([myContext canEvaluatePolicy:LAPolicyDeviceOwnerAuthenticationWithBiometrics error:&authError]) {
[myContext evaluatePolicy:LAPolicyDeviceOwnerAuthenticationWithBiometrics
localizedReason:@"Authenticate to access secure information"
reply:^(BOOL success, NSError *error) {
if (success) {
NSLog(@"User is authenticated successfully");
} else {
NSLog(@"Authentication Fails");
@tacryt-socryp
tacryt-socryp / magic-trick.py
Created July 25, 2014 21:36
magic-trick for Google CodeJam
f = open('A-small-attempt2.in', 'r')
T = f.readline()
y = 1
iterator = 0
for x in xrange(0,int(T)):
firstRow,secondRow = -6,-6
for i in xrange(0,10):
@tacryt-socryp
tacryt-socryp / cookie-clicker.py
Created July 25, 2014 21:35
cookie-clicker for Google CodeJam
@tacryt-socryp
tacryt-socryp / gist:9bdecfc7abbab3ed15c0
Created July 21, 2014 13:11
Website Scraper using PhantomJS
/* globals require, __dirname, console, process, setTimeout, document */
var phantom = require("phantom"),
system = require("system"),
jsdom = require("jsdom"),
fs = require("fs"),
saveDir = __dirname + "/snapshot",
url = require("url"),
ph;