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
| require 'openssl' | |
| require 'httparty' | |
| url = "https://stocks.exchange/api2" | |
| api_key = "your_api_key" | |
| api_secret = "your_api_secret" | |
| nonce = Time.now.to_i | |
| method = "GetInfo" |
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
| package main | |
| import ( | |
| "fmt" | |
| "gopkg.in/dedis/kyber.v2" | |
| "gopkg.in/dedis/kyber.v2/group/edwards25519" | |
| ) | |
| var curve = edwards25519.NewBlakeSHA256Ed25519() | |
| var sha256 = curve.Hash() |
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
| package main | |
| import ( | |
| "fmt" | |
| "gopkg.in/dedis/kyber.v2" | |
| "gopkg.in/dedis/kyber.v2/group/edwards25519" | |
| ) | |
| var curve = edwards25519.NewBlakeSHA256Ed25519() | |
| var sha256 = curve.Hash() |
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
| package main | |
| import ( | |
| "encoding/json" | |
| "fmt" | |
| "io/ioutil" | |
| "os" | |
| "strconv" | |
| ) |
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
| package main | |
| import ( | |
| "fmt" | |
| "math/rand" | |
| "time" | |
| ) | |
| type producer struct { | |
| id int |
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
| package main | |
| import ( | |
| "fmt" | |
| "time" | |
| ) | |
| func main() { | |
| timeout := time.After(time.Second * 10) | |
| finish := make(chan bool) |
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
| // Package binarysearchtree creates a ItemBinarySearchTree data structure for the Item type | |
| package binarysearchtree | |
| import ( | |
| "fmt" | |
| "sync" | |
| "github.com/cheekybits/genny/generic" | |
| ) |
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
| package bp | |
| import ( | |
| "crypto/elliptic" | |
| "crypto/rand" | |
| "crypto/sha256" | |
| "encoding/binary" | |
| "math/big" | |
| "fmt" |
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
| require 'google_plus' | |
| api_key = "your api key" | |
| user_id = "google plus user id" | |
| GooglePlus.api_key = api_key | |
| person = GooglePlus::Person.get(user_id, :key => api_key) | |
| cursor = person.list_activities |
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
| from steam import SteamClient | |
| from dota2 import Dota2Client | |
| client = SteamClient() | |
| dota = Dota2Client(client) | |
| LOGON_DETAILS = { | |
| 'username': "your-steam-username", | |
| 'password': "your-steam-password", |