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
// | |
// ViewController.m | |
// | |
// | |
// Created by Jonathan King on 19/08/2012. | |
// | |
// | |
#import "ViewController.h" |
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 | |
session_start(); | |
// A really cool tool for debuging | |
/* require $_SERVER['DOCUMENT_ROOT'] . '/kint/Kint.class.php'; */ | |
if ($_SERVER['REQUEST_METHOD'] == 'POST') { | |
$throws = $_POST['number']; |
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
Josh | |
Buneme | |
Shaun | |
Dylan | |
Jonathan | |
Tycho |
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
#include <SPI.h> | |
#include <ble.h> | |
#include <Servo.h> | |
#define LEFT_VIBRATOR_PIN 4 | |
#define RIGHT_VIBRATOR_PIN 5 | |
void setup() | |
{ | |
SPI.setDataMode(SPI_MODE0); |
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 | |
function sendNotification($title,$body) | |
{ | |
$AppKey = "YourUrbanAirshipAppKey"; | |
$MasterSecret = "YourUrbanAirshipMasterSecret"; | |
$request = curl_init(); | |
curl_setopt($request, CURLOPT_URL, "https://go.urbanairship.com/api/push/"); | |
curl_setopt($request, CURLOPT_USERPWD, "<$AppKey>:<$MasterSecret>"); |
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
// | |
// DeviceDetailViewController.m | |
// MetaWearApiTest | |
// | |
// Created by Stephen Schiffli on 7/30/14. | |
// Copyright (c) 2014 MbientLab. All rights reserved. | |
// | |
// Amendments made to run UI changes on main thread using GCD by Jonathan King - 31/8/14 | |
#import "DeviceDetailViewController.h" |
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
#include <stdio.h> | |
#include <stdlib.h> | |
typedef enum type | |
{ | |
CHAR, | |
INT, | |
LONG | |
} type; |
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
#!/usr/bin/env bash | |
# This is a bash port of the Web Economy Bullshit Generator | |
# http://www.dack.com/web/bullshit.html | |
# Now you don't have to worry about commit messages! | |
ARRAY1=("implement" "utilize" "integrate" "streamline" "optimize" "evolve" "transform" "embrace" | |
"enable" "orchestrate" "leverage" "reinvent" "aggregate" "architect" "enhance" "incentivize" "morph" "empower" | |
"envisioneer" "monetize" "harness" "facilitate" "seize" "disintermediate" "synergize" "strategize" "deploy" | |
"brand" "grow" "target" "syndicate" "synthesize" "deliver" "mesh" "incubate" "engage" "maximize" "benchmark" |
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 Control.Monad | |
import Control.Arrow | |
import Data.List | |
dice :: Int -> [(Int, Int)] | |
dice = freq . map sum . (flip replicateM) [1..6] | |
freq :: Ord a => [a] -> [(a, Int)] | |
freq = map (head &&& length) . group . sort |
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
#!/usr/bin/env runhaskell | |
import System.Directory | |
import System.Environment | |
import Control.Monad | |
import System.FilePath.Windows | |
import Data.List | |
import Data.Maybe | |
type Name = String |
OlderNewer