I hereby claim:
- I am hartez on github.
- I am hartez (https://keybase.io/hartez) on keybase.
- I have a public key ASDHDfsQ0rypUYqHl9WtalmOx-BzQgjxRscWRqnmdtVdpAo
To claim this, I am signing this object:
from bs4 import BeautifulSoup as bsoup | |
import pandas as pd | |
import numpy as np | |
import humanfriendly | |
# Read in email data file | |
df = pd.read_csv('../bodytext.csv', header = 0) | |
# Filter out sent mail | |
emails = df.query('FromEmail != "[my email address]"').copy() |
public class TranslatePage : ContentPage | |
{ | |
public TranslatePage() | |
{ | |
var layout = new RelativeLayout(); | |
double viewSize = 100; | |
var box = new Entry | |
{ |
public class TranslatePage : ContentPage | |
{ | |
public TranslatePage() | |
{ | |
var layout = new RelativeLayout(); | |
var tapGesture = new TapGestureRecognizer | |
{ | |
Command = new Command(() => DisplayAlert("Box Tapped", "The box was tapped", "Cool, thanks.")) | |
}; |
I hereby claim:
To claim this, I am signing this object:
$emails = @() | |
$gmvaultdb = "[path to your gmvault data]" | |
$total = (Get-ChildItem $gmvaultdb -Recurse -Filter *.eml | measure).Count | |
Add-Type -Path "MimeKit.1.2.10.0\lib\net45\MimeKit.dll" | |
$formats = @{ | |
[MimeKit.Text.TextFormat]::Text = 0; |
<script type="text/javascript"> | |
// This is a workaround for using jquery-validation-engine with select2 for 'required' validation | |
// Since the _required validator for jquery-validation-engine uses .val() to see | |
// if there's anything in the input, we can hijack .val() for the container created by select2\ | |
// and redirect it to the value of the hidden element | |
// jquery-validation-engine throws an error if the thing we're validating doesn't have an id | |
// so we'll put one on the container created by select2 (that way, the positioning of the prompts | |
// will be correct) | |
$('#mySelector').select2('container').attr('id', 'mySelectorValidate'); |
var temperature = new ConversionGraph(); | |
var fahrenheit = new Unit("degrees Fahrenheit") | |
.IsAlsoCalled("Fahrenheit") | |
.CanBeAbbreviated("°F") | |
.PluralizeAs("°F"); | |
temperature.AddConversion( | |
Conversions.From(fahrenheit).To(celcius).Subtract(32).MultiplyBy(5M / 9M)); |
var celcius = new Unit("Celcius") | |
.IsAlsoCalled("celcius", "Centigrade", "centigrade", "degrees Celcius", "degrees Centigrade") | |
.IsAlsoCalled("celcuis") // typo from legacy system | |
.CanBeAbbreviated("°C") | |
.PluralizeAs("°C"); |
public interface IConversion | |
{ | |
IEnumerable<IConversionStep> Steps { get; } | |
void AddStep(IConversionStep step); | |
Conversion Reverse(); | |
} | |
public interface IConversionStep | |
{ | |
decimal Apply(decimal input); |
var graph = new ConversionGraph(); | |
var meter = new Unit("meter"); | |
var feet = new Unit("foot"); | |
graph.AddConversion(Conversions.One(meter).In(feet).Is(3.28084M)); |