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
%% Вычисляем PI методом Монте-Карло | |
-module(pi). | |
-export([calculate/1, parallel_calculate/2, start_worker/2]). | |
calculate(Hits) -> | |
Acc = test_hit(Hits, 0), | |
{ok, 4.0 * Acc / Hits}. | |
parallel_calculate(Hits, Workers) -> |
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
[alias] | |
hist = log --pretty=format:\"\t%C(red)%h%C(reset)%C(blue)%d%C(reset) : %C(yellow)%ad%C(reset) | %s [%C(green)%an<%ae>%C(reset)]\" --graph --date=short |
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); | |
} |
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
<?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
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>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
// | |
// 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
// 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; |
OlderNewer