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
from Uni import * | |
import time | |
servers = CSEM.loadServers(["lofty"]) | |
def notify(title, subtitle, message): | |
sh.Command("terminal-notifier")("-title", title, "-subtitle", subtitle, "-message", message) | |
# Get all users on every server |
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
from Uni import * | |
import time | |
servers = CSEM.loadServers(["lofty"]) | |
def notify(title, subtitle, message): | |
sh.Command("terminal-notifier")("-title", title, "-subtitle", subtitle, "-message", message) | |
# Get all users on every server |
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
package tw.tobias.reviveandsurvive; | |
import android.content.Context; | |
import android.content.SharedPreferences; | |
import android.preference.PreferenceManager; | |
import android.util.Log; | |
import com.google.android.gms.location.ActivityRecognitionResult; | |
import com.google.android.gms.location.DetectedActivity; |
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
function canvasToBlob(canvas) { | |
var imageBase64 = canvas.toDataURL(); | |
var imageBinaryString = atob(imageBase64.split(',')[1]); | |
var imageBinary = new Uint8Array(imageBinaryString.length); | |
for (var i = 0; i < imageBinaryString.length; i++) { | |
imageBinary[i] = imageBinaryString.charCodeAt(i); | |
} | |
return new Blob([new Uint8Array(imageBinary)], {type: 'image/png'}); |
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
### Keybase proof | |
I hereby claim: | |
* I am tobiaswooldridge on github. | |
* I am thw (https://keybase.io/thw) on keybase. | |
* I have a public key whose fingerprint is AD12 140D 0133 8F8E EBA0 491A 819A 1A6C 41A6 8AA2 | |
To claim this, I am signing this object: |
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
It would be neat if you could start a timer on a phone using it's camera and pointing it at an electronic device with a countdown on it. | |
e.g. | |
1. Take a photo of a microwave | |
2. OCR photo | |
3. Wait 1s | |
4. Take a photo of a microwave | |
5. OCR photo | |
6. Compare the textual results of the two and start a timer based on that (e.g. 2:00 and 1:59 would indicate the timer should start counting down from 1:59 minutes) |
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 java.util.ArrayList; | |
import java.util.BitSet; | |
/** | |
* Created by Tobias on 24/04/2015. | |
*/ | |
public class Primes { | |
public static interface Solution { | |
String getAlgorithm(); |
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
<!-- | |
Use the following or similar to execute JS | |
--> | |
<html> | |
<body> | |
<pre> | |
<script> | |
function log(arg) { | |
document.writeln(arg); |
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
<!-- | |
Use the following or similar to execute JS | |
--> | |
<html> | |
<body> | |
<pre> | |
<script> | |
function log(arg) { | |
document.writeln(arg); |
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
<!-- | |
Use the following or similar to execute JS | |
--> | |
<html> | |
<body> | |
<pre> | |
<script> | |
function log(arg) { | |
document.writeln(arg); |
OlderNewer