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
| /* | |
| ******************************************************************************** | |
| Golang - Asterisk and Ampersand Cheatsheet | |
| ******************************************************************************** | |
| Also available at: https://play.golang.org/p/lNpnS9j1ma | |
| Allowed: | |
| -------- | |
| p := Person{"Steve", 28} stores the value |
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
| #include <future> | |
| #include <iostream> | |
| #include <thread> | |
| #include <queue> | |
| template <typename T> | |
| class concurrent_queue { | |
| private: | |
| std::queue<T> _queue; | |
| std::mutex _mutex; |
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
| import threading # :( | |
| class WaitGroup(object): | |
| """WaitGroup is like Go sync.WaitGroup. | |
| Without all the useful corner cases. | |
| """ | |
| def __init__(self): | |
| self.count = 0 | |
| self.cv = threading.Condition() |
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
| /** | |
| * Use this file to configure your truffle project. It's seeded with some | |
| * common settings for different networks and features like migrations, | |
| * compilation and testing. Uncomment the ones you need or modify | |
| * them to suit your project as necessary. | |
| * | |
| * More information about configuration can be found at: | |
| * | |
| * truffleframework.com/docs/advanced/configuration | |
| * |
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
| import time | |
| import os, io | |
| import urllib.request | |
| import tweepy | |
| from google.cloud import vision | |
| from google.cloud import vision_v1 | |
| import urllib.parse, urllib.request | |
| import hashlib, hmac, time | |
| import requests |
OlderNewer