... or Why Pipelining Is Not That Easy
Golang Concurrency Patterns for brave and smart.
By @kachayev
... or Why Pipelining Is Not That Easy
Golang Concurrency Patterns for brave and smart.
By @kachayev
This project has moved to https://github.com/jonhoo/drwmutex so it can be imported into Go applications.
| import QtQuick 2.0 | |
| /** | |
| * adapted from StackOverflow: | |
| * http://stackoverflow.com/questions/26879266/make-toast-in-android-by-qml | |
| */ | |
| /** | |
| * @brief An Android-like timed message text in a box that self-destroys when finished if desired | |
| */ |
| This work, excluding the Arch Linux logo, is made available under CC0: https://creativecommons.org/publicdomain/zero/1.0/ |
|
You'll probably be working with a single smartcard, so you'll want only one primary key ( |
This is a story about how I tried to use Go for scripting. In this story, I’ll discuss the need for a Go script, how we would expect it to behave and the possible implementations; During the discussion I’ll deep dive to scripts, shells, and shebangs. Finally, we’ll discuss solutions that will make Go scripts work.
While python and bash are popular scripting languages, C, C++ and Java are not used for scripts at all, and some languages are somewhere in between.
| /* To enable changing tabs by using the mouse wheel, | |
| * enter this code into the browser console (Ctrl+Shift+J) */ | |
| var onTabWheel = function(ev) { | |
| if (ev.deltaMode == 1 /* DOM_DELTA_LINE */) { | |
| var idx = gBrowser.tabContainer.getIndexOfItem(gBrowser.selectedTab); | |
| var direction = ev.deltaY > 0 ? 1 : -1; | |
| gBrowser.selectTabAtIndex((idx + direction) % gBrowser.tabs.length); | |
| } | |
| } |
| package main | |
| import ( | |
| "database/sql" | |
| "fmt" | |
| "net/url" | |
| "os" | |
| "reflect" | |
| "regexp" | |
| "strconv" |
| #!/bin/sh | |
| set -x | |
| # adb shell pm list packages -d | |
| # adb shell pm list packages | |
| adb shell pm uninstall -k --user 0 com.sonymobile.entrance | |
| adb shell pm uninstall -k --user 0 com.sonymobile.xperiatransfermobile | |
| adb shell pm uninstall -k --user 0 com.sonymobile.phoneusage | |
| adb shell pm uninstall -k --user 0 com.sonymobile.googleanalyticsproxy |
| package ciphers | |
| import ( | |
| "crypto/rand" | |
| "crypto/rsa" | |
| "crypto/sha512" | |
| "crypto/x509" | |
| "encoding/pem" | |
| "log" | |
| ) |