I hereby claim:
- I am gilday on github.
- I am gilday (https://keybase.io/gilday) on keybase.
- I have a public key ASAViR_z1NtHfVbjgLeOBAhJPSjvBzUFsvwULnhsgb9Zewo
To claim this, I am signing this object:
// Windows | |
java.util.Properties props = new java.util.Properties(); | |
props.setProperty("javax.net.ssl.keyStoreType", "Windows-MY"); | |
props.setProperty("javax.net.ssl.keyStore", "NONE"); | |
props.setProperty("javax.net.ssl.trustStoreType", "Windows-ROOT"); | |
props.setProperty("javax.net.ssl.trustStore", "NONE"); | |
// Apple (untested) | |
java.util.Properties props = new java.util.Properties(); | |
props.setProperty("javax.net.ssl.keyStoreType", "KeychainStore"); |
/// <summary> | |
/// Adds a model error using strongly typed lambda expressions | |
/// </summary> | |
public static void AddModelError<TModel>( | |
this ModelStateDictionary modelState, | |
Expression<Func<TModel, object>> method, | |
string message) | |
{ | |
if (method == null) | |
{ |
-(ClueGameService*) initNewGameWithPlayers:(NSArray *)gkTurnBasedParticipants | |
{ | |
self = [super init]; | |
NSMutableArray *playersList = [[NSMutableArray alloc] initWithCapacity:[gkTurnBasedParticipants count]]; | |
// The first player is always ms scarlet. don't care about the rest | |
NSArray *allCharacters = [[NSArray alloc] initWithObjects:[ClueCharacterFactory msScarlet], [ClueCharacterFactory colMustard], [ClueCharacterFactory mrsWhite], [ClueCharacterFactory profPlum] , nil]; | |
for (int i = 0; i < [gkTurnBasedParticipants count]; i++) { |
# JHU 605.421 | |
# 03/14/2013 | |
# Here's a response to your muddy question. This will run through the | |
# example given in the course material and trace out what is happening. | |
# Specifically, it traces the partition function | |
# | |
# Outputs | |
# | |
# p r | |
# [5, 3, 2, 6, 4, 1, 3, 7] |
FROM nginx | |
ADD ./index.html /usr/share/nginx/html/index.html | |
VOLUME /usr/share/nginx/html |
I hereby claim:
To claim this, I am signing this object:
/** | |
* get local mac address as a string. useful for scheduling tasks to happen at the same time every day on a given machine, but at different times across all machines | |
*/ | |
static String mac() { | |
final ArrayList<NetworkInterface> ifaces; | |
try { | |
ifaces = Collections.list(NetworkInterface.getNetworkInterfaces()); | |
// sort the interfaces by name so we consistently pick the same interface | |
Collections.sort(ifaces, new Comparator<NetworkInterface>() { | |
@Override |
I am a grumpy developer. More than once, usually after I finish a diatribe on why some language or framework is a dumpster fire, I have been asked "so, what do you like?". I actually like a lot of things! Here's a list
#!/usr/bin/env python | |
# merge-repos.py | |
# utility script for merging repos into a monorepo while preserving history | |
import argparse | |
from contextlib import contextmanager | |
import os | |
import shutil | |
import subprocess |