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 socket | |
s = socket.socket(socket.AF_UNIX) | |
addr = "\0org.snyh.test" | |
s.bind(addr) | |
while(True): | |
pass | |
# use netstat -anp | grep snyh | |
# to verify it |
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 QtQuick 2.0 | |
import QtQuick.Controls 1.0 | |
Column { | |
CheckBox { | |
id:a1 | |
text:"A1" | |
Binding { target :a2; property: "checked"; value:a1.checked } | |
} |
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 "dui" | |
import "fmt" | |
import "io/ioutil" | |
func main() { | |
dui.Init() | |
f := dui.NewFrame(300, 300) |
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 random | |
class DistanceRandom: | |
def __init__(self, v_range, v_distance=None): | |
if v_distance == None: | |
v_distance = len(v_range) | |
assert(len(v_range) >= v_distance >= 1) | |
self.freshed = v_range | |
self.dist = v_distance | |
self.used = [] |
NewerOlder