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
{ | |
"key": "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
let disableSuspendButtonFrame = new AM.FrameBox(); | |
let disableSuspendButtonRow = new AM.FrameBoxRow(); | |
let disableSuspendButtonLabel = new Gtk.Label({ | |
label: _("Disable activities hot corner"), | |
use_markup: true, | |
xalign: 0, | |
hexpand: true | |
}); | |
let disableSuspendButtonSwitch = new Gtk.Switch({ halign: Gtk.Align.END }); | |
disableSuspendButtonSwitch.set_active(this.settings.get_boolean('disable-suspend-button')); |
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
<key type="b" name="disable-suspend-button"> | |
<default>false</default> | |
<summary>Disable suspend button</summary> | |
<description>Disable suspend button.</description> | |
</key> |
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
def a(x=[0]): | |
x.append(x[-1] + 1) | |
return x[-1] | |
print a() | |
print a() | |
print a() | |
def b(x=[0]): |
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 Variable lookupVariable(String id) { | |
/* | |
* A variable lookup can only occur inside a method or a class. | |
* Everything else is invalid. | |
*/ | |
/* | |
* TODO: improve this hack! | |
*/ | |
Variable variable; | |
Scopeable currentScope = this.currentScope(); |
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
sudo apt-get install cython | |
git clone https://github.com/gevent/gevent | |
cd gevent | |
sudo python setup.py build | |
sudo python setup.py install |
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
{ "@context": { | |
"rdf": "http://www.w3.org/1999/02/22-rdf-syntax-ns#", | |
"rdfs": "http://www.w3.org/2000/01/rdf-schema#", | |
"owl": "http://www.w3.org/2002/07/owl#", | |
"express": "http://example.com/express#", | |
"defines": { | |
"@reverse": "rdfs:isDefinedBy" | |
}, | |
"propertyOf": { | |
"@id": "rdfs:domain", |
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
{ | |
"@context": { | |
"rdfs": "http://www.w3.org/2000/01/rdf-schema#", | |
"schema": "http://schema.org/", | |
"xsd": "http://www.w3.org/2001/XMLSchema#", | |
"rdfs:subClassOf": { | |
"@type": "@id" | |
}, | |
"name": "rdfs:label", | |
"description": "rdfs:comment", |
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
#encoding: utf-8 | |
""" | |
@author Alexander Rüedlinger <[email protected]> | |
@date 06.03.2015 | |
Simple program to detect transition of a door from closed state to open state | |
and vice versa using a magnetic sensor. | |
Magnetic sensor: http://www.adafruit.com/product/375 |
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
# on device 0 - make device discoveravle | |
sudo hciconfig hci0 up | |
sudo hciconfig hci0 reset | |
sudo hciconfig hci0 piscan | |
sudo hciconfig hci0 leadv | |
# on device 1 - discover device 0 | |
hcitool scan |