I hereby claim:
- I am aventurella on github.
- I am aventurella (https://keybase.io/aventurella) on keybase.
- I have a public key whose fingerprint is C376 4854 066A EEAB 7731 0E34 FD1E FCE2 1832 DB6A
To claim this, I am signing this object:
package async | |
import ( | |
"sync" | |
) | |
type AllResult struct { | |
values []interface{} | |
errors []error | |
hasError bool |
I hereby claim:
To claim this, I am signing this object:
// I say basically, because it does more then this to be sure (middleware etc), | |
// but at the "reduce" things level, I think this covers it. | |
import Foundation | |
import RxSwift | |
let stateQueue = DispatchQueue(label: "com.redux.action") | |
// GATT Member codes (16 bits / 2 Bytes) | |
// https://www.bluetooth.com/specifications/assigned-numbers/16-bit-uuids-for-members | |
// | |
// Note that the relevant google registry entry is: | |
// 65194 0xFEAA Google 12-Mar-2015 | |
// Eddystone Service UUID of 0xFEAA (see docs here: https://github.com/google/eddystone/blob/master/protocol-specification.md#common-elements) | |
// | |
// GAP Codes | |
// https://www.bluetooth.com/specifications/assigned-numbers/generic-access-profile | |
// |
Read the following:
The code below is directly taken from: http://benmccormick.org/2015/07/06/backbone-and-es6-classes-revisited/
YOU MUST ENABLE THE FOLLOWING IN YOUR TS CONFIG FOR THIS TO WORK
import Foundation | |
import RealmSwift | |
class StringObject: Object{ | |
dynamic var id: String = "" | |
override static func primaryKey() -> String{ | |
return "id" | |
} |
Redirecting embedded Python’s I/O | |
Posted on 2012-4-13 by mvasilkov | |
When using Python for application scripting, more often than not you want to redirect interpreter’s input/output to the embedding program. This is how it’s done with the Python/C API: | |
PyObject *sys = PyImport_ImportModule("sys"); | |
PyObject *out = PyFile_FromString("python_out", "w+"); | |
PyObject_SetAttrString(sys, "stdout", out); | |
Pretty intuitive, right? Now embedded Python’s stdout points to the newly created file, python_out. Working with the script’s output from C is also trivial: |
Once done, add a folder in provider/oauth2
called ext
. In the end this path will exist: provider/oauth2/ext
.
Place the 3 files below into that folder with an __init__.py
salt '*' cmd.run 'rm -rm /var/cache/salt/minion/files/base/*' | |
salt '*' saltutil.sync_all |
define(function(require, exports, module) { | |
// Imports | |
// make require load jquery and jasmine-jquery | |
require('jquery'); | |
require('jasmine/jasmine-jquery'); | |
// jquery-jasmine | |
// now getFixtures() will be available. |