Preconditions:
- POSIX or Windows system
- Install Docker
- A GitHub repo that already builds on Travis
Postcondition:
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
A view controller cannot segue to another controller without presenting itself. | |
https://stackoverflow.com/questions/8221787/perform-segue-on-viewdidload | |
https://stackoverflow.com/questions/10428629/programatically-set-the-initial-view-controller-using-storyboards | |
func application(application: UIApplication, didFinishLaunchingWithOptions launchOptions: [NSObject: AnyObject]?) -> Bool { |
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
//: Playground - noun: a place where people can play | |
import UIKit | |
func delay(delay:Double, closure:()->()) { | |
dispatch_after( | |
dispatch_time( | |
DISPATCH_TIME_NOW, | |
Int64(delay * Double(NSEC_PER_SEC)) | |
), |
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
<?php | |
# | |
# Input multiple SELECT statements from different SQL queries | |
# get back a single stream of rows with records merged if | |
# they have the same key | |
# | |
function genOneTwoThree() { | |
foreach ([1=>'one',2=>'two',3=>'three'] as $key => $value) { | |
# echo "...ready to yield: $key => $number\n"; |
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
<?php | |
# My hack from 2003, probably still works | |
$mail = $_GET['mail']; | |
if ($mail) | |
{ | |
$image = "wildcardphotos/$mail.jpg"; | |
if (!file_exists ($image)) | |
{ | |
$getURL="http://wildcardphotos.villanova.edu/servlet/ViewPhoto?mail=$mail"; |
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
pragma solidity ^0.4.24; | |
/******************************************************************************\ | |
*..................................SU SQUARES..................................* | |
*.....................Cute squares you own and personalize.....................* | |
*..............................................................................* | |
* First, I just want to say we are so excited and humbled to get this far and * | |
* that you're even reading this. So thank you! * | |
* * | |
* This file is organized into multiple contracts that separate functionality * |
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
pragma solidity ^0.4.24; | |
/******************************************************************************\ | |
*..................................SU SQUARES..................................* | |
*.....................Cute squares you own and personalize.....................* | |
*..............................................................................* | |
* First, I just want to say we are so excited and humbled to get this far and * | |
* that you're even reading this. So thank you! * | |
* * | |
* This file is organized into multiple contracts that separate functionality * |
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
<?php | |
# Composer: "google/apiclient": "^2.0" | |
const CREDENTIALS_FILE = '/var/www/vhosts/library/Dashboard-6403d6a8a5b6.json'; | |
function googleGetExperiments() | |
{ | |
return cache(__FUNCTION__, func_get_args(), 3600*6, function() { | |
$scopes = [ 'https://www.googleapis.com/auth/analytics.readonly' ]; | |
$client = new Google_Client(); |
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
Moved to a full project at: | |
https://github.com/fulldecent/google-sheets-etl |
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 tensorflow as tf #We need tensorflow 2.x | |
import numpy as np | |
#The hashlength in bits | |
hashLength = 256 | |
def buildModel(): | |
#we can set the seed to simulate the fact that this network is known and doesn't change between runs | |
#tf.random.set_seed(42) | |
model = tf.keras.Sequential() |