I hereby claim:
- I am joelmartinez on github.
- I am joelmartinez (https://keybase.io/joelmartinez) on keybase.
- I have a public key whose fingerprint is 45E7 6C14 2522 C0DC 5009 D7EC 7A3A 5157 05B4 2AF6
To claim this, I am signing this object:
setwd("~/dev/datascience/r") | |
data <- csv.load("hw1_data.csv") | |
filtered <- data[!is.na(data$Ozone),]$Ozone | |
mean(filtered) |
Environment.SetEnvironmentVariable("MSBuild", "C:\Program Files (x86)\MSBuild\14.0\Bin\msbuild.exe") |
MongoServer server = MongoServer.Create("mongodb://TheUserName:ThePassword@The.Url.Com:12345/TheDatabaseId"); | |
MongoDatabase mongo = server.GetDatabase("<TheDatabaseId>"); | |
var employees = mongo.GetCollection<TheClass>("TheCollectionName"); | |
var cursor = employees.FindAllAs<TheClass>(); | |
var item = cursor.FirstOrDefault(); | |
.... |
var engine = new JintEngine(); | |
engine.SetFunction("alert", new Action<string>(t => MessageBox.Show(t))); | |
engine.Run("alert('Hello World, from dynamically interpereted JavaScript on WP7!')"); |
package com.your.project; | |
import java.io.IOException; | |
import java.io.InputStream; | |
import java.lang.ref.SoftReference; | |
import java.net.MalformedURLException; | |
import java.net.URL; | |
import java.net.URLConnection; | |
import java.util.Collections; | |
import java.util.HashMap; |
/** pieced together from http://www.androidsnippets.com/create-a-md5-hash-and-dump-as-a-hex-string */ | |
public String md5(String s) { | |
try { | |
// Create MD5 Hash | |
MessageDigest digest = java.security.MessageDigest.getInstance("MD5"); | |
digest.update(s.getBytes()); | |
byte messageDigest[] = digest.digest(); | |
// Create Hex String | |
StringBuffer hexString = new StringBuffer(); |
using System; | |
using System.Dynamic; | |
using MonoMac.Foundation; | |
namespace CodeCube | |
{ | |
public class UserSettings : DynamicObject | |
{ | |
NSUserDefaults defaults = NSUserDefaults.StandardUserDefaults; |
// http://stackoverflow.com/a/4007066/5416 | |
@implementation NSObject (PerformBlockAfterDelay) | |
- (void)performBlock:(void (^)(void))block | |
afterDelay:(NSTimeInterval)delay | |
{ | |
block = [[block copy] autorelease]; | |
[self performSelector:@selector(fireBlockAfterDelay:) | |
withObject:block |
I hereby claim:
To claim this, I am signing this object:
-----BEGIN PGP SIGNED MESSAGE----- | |
Hash: SHA512 | |
This message is signed ... just because I can. Given that the need to cryptographically sign things doesn't come up very often, I really just wanted to use it. Now, who is going to verify this? | |
-----BEGIN PGP SIGNATURE----- | |
Version: Keybase OpenPGP v2.0.49 | |
Comment: https://keybase.io/crypto | |
wsFcBAABCgAGBQJWuOItAAoJEHo6UVcFtCr2YhUP/1WYWSloGPFZlegAFAG6Tdar | |
QBCy6aX0KODlCRAN9arZSA9qpedcyy2CmcKUJQJgtXRWYke/zz0YVTOQO5BG5lY7 |