3.3V | 1 | 2 | 5V |
I2CO SDA |
This file contains hidden or 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
# You don't need Fog in Ruby or some other library to upload to S3 -- shell works perfectly fine | |
# This is how I upload my new Sol Trader builds (http://soltrader.net) | |
# Based on a modified script from here: http://tmont.com/blargh/2014/1/uploading-to-s3-in-bash | |
S3KEY="my aws key" | |
S3SECRET="my aws secret" # pass these in | |
function putS3 | |
{ | |
path=$1 |
This file contains hidden or 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
// npm install telegraf telegraf-wit | |
var Telegraf = require('telegraf') | |
var TelegrafWit = require('telegraf-wit') | |
var app = new Telegraf(process.env.BOT_TOKEN) | |
var wit = new TelegrafWit(process.env.WIT_TOKEN) | |
app.use(Telegraf.memorySession()) |
This file contains hidden or 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
// One password is enough. | |
function getPassword(masterPassword, serviceName, username){ | |
var alphabetRFC1924 = ['0','1','2','3','4','5','6','7','8','9','A','B','C','D','E','F','G','H','I','J','K','L','M','N','O','P','Q','R','S','T','U','V','W','X','Y','Z','a','b','c','d','e','f','g','h','i','j','k','l','m','n','o','p','q','r','s','t','u','v','w','x','y','z','!','#','$','%','&','(',')','*','+','-',';','<','=','>','?','@','^','_','`','{','|','}','~']; | |
var hash = md5(masterPassword + serviceName + username); | |
var password = ''; | |
for (i = 0; i < hash.length; i += 1) { | |
var symbol = hash.charCodeAt(i); | |
password += alphabetRFC1924[symbol % alphabetRFC1924.length]; | |
} | |
return password; |
This file contains hidden or 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
// | |
// SVGPath.swift | |
// SVGPath | |
// | |
// Created by Tim Wood on 1/21/15. | |
// Updated by Vitaly Domnikov 10/6/2015 | |
// Copyright (c) 2015 Tim Wood, Vitaly Domnikov. All rights reserved. | |
import Foundation | |
import CoreGraphics |
This file contains hidden or 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
<?xml version="1.0" encoding="UTF-8"?> | |
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> | |
<plist version="1.0"> | |
<dict> | |
<key>Ansi 0 Color</key> | |
<dict> | |
<key>Blue Component</key> | |
<real>0.16862745583057404</real> | |
<key>Green Component</key> | |
<real>0.14901961386203766</real> |
This file contains hidden or 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
0 @ [1:1] | |
1 @ [1:5] | |
2 @ [1:9] | |
3 @ [1:13] | |
4 @ [1:17] | |
5 @ [1:21] | |
6 @ [1:25] | |
7 @ [1:29] | |
8 @ [1:33] | |
9 @ [1:37] |
This file contains hidden or 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
<?xml version="1.0" encoding="UTF-8"?> | |
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> | |
<plist version="1.0"> | |
<dict> | |
<key>ANSIBlackColor</key> | |
<data> | |
YnBsaXN0MDDUAQIDBAUGFRZYJHZlcnNpb25YJG9iamVjdHNZJGFyY2hpdmVyVCR0b3AS | |
AAGGoKMHCA9VJG51bGzTCQoLDA0OVU5TUkdCXE5TQ29sb3JTcGFjZVYkY2xhc3NGMCAw | |
IDAAEAGAAtIQERITWiRjbGFzc25hbWVYJGNsYXNzZXNXTlNDb2xvcqISFFhOU09iamVj | |
dF8QD05TS2V5ZWRBcmNoaXZlctEXGFRyb290gAEIERojLTI3O0FITltiaWttcn2GjpGa |
This file contains hidden or 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
# ------------------------------------------------------------------------------ | |
# FILE: hipster.zsh-theme | |
# DESCRIPTION: oh-my-zsh theme file. | |
# AUTHOR: Vitaly Domnikov ([email protected]) | |
# BASED ON: Sorin theme by Sorin Ionescu ([email protected]) | |
# VERSION: 1.0.2 | |
# ------------------------------------------------------------------------------ | |
function get_host { | |
echo `hostname`'' |
This file contains hidden or 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
public delegate void PropertyChangedCallback<T>(T sender, DependencyPropertyChangedEventArgs e) where T : DependencyObject; | |
public static class DependencyPropertyHelper | |
{ | |
public static DependencyProperty Register<TProperty, TOwner>(string name, | |
TProperty defaultValue = default(TProperty), | |
PropertyChangedCallback<TOwner> callback = null) where TOwner : DependencyObject | |
{ | |
return RegisterImpl(false, name, defaultValue, callback); | |
} |