I hereby claim:
- I am calebfenton on github.
- I am calebfenton (https://keybase.io/calebfenton) on keybase.
- I have a public key ASDh0fF0_SgjgXzA-R6d7ZDTW8E2PdMF8lIbbqzV8G4vvgo
To claim this, I am signing this object:
package com.isciurus.oauth_poc; | |
import java.io.IOException; | |
import java.text.DateFormat; | |
import java.util.Date; | |
import com.google.android.gms.auth.GoogleAuthException; | |
import com.google.android.gms.auth.GoogleAuthUtil; | |
import com.google.android.gms.auth.UserRecoverableAuthException; | |
import android.accounts.AccountManager; | |
import android.app.Activity; |
apple.laf.JRSUIConstants | |
apple.laf.JRSUIControl$BufferState | |
com.apple.concurrent.Dispatch$Priority | |
com.apple.concurrent.LibDispatchNative | |
com.apple.eawt.event.GestureUtilities | |
com.apple.eawt.FullScreenUtilities | |
com.apple.eawt.QuitStrategy | |
com.apple.laf.AquaButtonBorder$1 | |
com.apple.laf.AquaButtonCheckBoxUI$1 | |
com.apple.laf.AquaButtonExtendedTypes$1 |
require 'citrus' | |
Citrus.load 'boolean' | |
m = Boolean.parse 'false or true' | |
puts m.value # > true | |
m = Boolean.parse 'true and (!true && True) || FALSE' | |
puts m.value # > false |
I hereby claim:
To claim this, I am signing this object:
# Limitations: | |
# 1. Only math allowed is addition. | |
# 2. No Ruby API calls. | |
# 3. Inputs are natural numbers. | |
require 'benchmark' | |
def min_max(a, b) | |
smaller = a | |
larger = b |
import org.apache.hadoop.fs.{FileStatus, FileSystem, Path} | |
import org.apache.hadoop.io.SequenceFile | |
import org.apache.hadoop.io.SequenceFile.{Metadata, Reader, Writer} | |
import org.apache.hadoop.io.compress.{DefaultCodec, SnappyCodec} | |
import org.apache.hadoop.conf.Configuration | |
import org.apache.spark.SparkContext | |
def migrateSnappy(fs: FileSystem, path: String): Unit = { | |
val snappyPath = new Path(path) | |
val oldPath = new Path(path.replace(".snappy", "")) |
import sys | |
with open(sys.argv[1], 'r') as f: | |
lines = f.readlines() | |
for line in lines: | |
if line.startswith('#'): | |
continue | |
parts = line.strip().split('\t') | |
chem = parts[len(parts) - 1] | |
sys.stdout.write(chem) |
import java.util.Arrays; | |
import java.util.function.IntUnaryOperator; | |
import java.util.stream.IntStream; | |
public class StreamExamples { | |
public static void main(String[] args) { | |
int[] myData = new int[]{1, 1, 2, 3, 5, 8, 13, 21, 34}; | |
System.out.println("myData: " + Arrays.toString(myData)); |
#!/usr/bin/env python | |
import collections | |
import matplotlib.patches as mpatches | |
import matplotlib.pyplot as plt | |
import numpy as np | |
import sklearn as skl | |
import itertools |
#!/usr/bin/env python | |
"""ferret_files.py: Recursively find and copy files with some file type.""" | |
import hashlib | |
import os | |
import shutil | |
import argh | |
import magic |