Syntax | Description |
---|---|
arr=() |
Create an empty array |
arr=(1 2 3) |
Initialize array |
${arr[2]} |
Retrieve third element |
${arr[@]} |
Retrieve all elements |
${!arr[@]} |
Retrieve array indices |
${#arr[@]} |
Calculate array size |
arr[0]=3 |
Overwrite 1st element |
arr+=(4) |
Append value(s) |
This file contains 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
class A: | |
def __init__(self, name): | |
self._name = name | |
@property | |
def name(self): | |
return self._name |
This file contains 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
git submodule deinit <path_to_submodule> | |
git rm <path_to_submodule> | |
git commit-m "Removed submodule " | |
rm -rf .git/modules/<path_to_submodule> |
This file contains 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
var autobahn = require('autobahn'); | |
var wsuri = "wss://api.poloniex.com"; | |
var connection = new autobahn.Connection({ | |
url: wsuri, | |
realm: "realm1" | |
}); | |
connection.onopen = function (session) { | |
function marketEvent (args,kwargs) { | |
console.log(args); |
This file contains 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
0xE22CBeeF0D322F3217b6cAeC494Ee4037C84A10d |
This file contains 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
#!/bin/sh | |
# | |
# Optware setup | |
# Alternatives Optware Startup und Shutdown Script #/usr/local/etc/rc.d/optware.sh | |
# | |
case $1 in | |
start) | |
[ ! -h /opt -a ! -d /opt ] && ln -s /volume1/@optware /opt | |
for i in /opt/etc/init.d/S??* ;do | |
# |
I hereby claim:
- I am hakandilek on github.
- I am hakan (https://keybase.io/hakan) on keybase.
- I have a public key whose fingerprint is 7A42 539A 5C06 A8AD 69A7 AE95 15BA D9DC 6C79 A132
To claim this, I am signing this object:
This file contains 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
// jersey resources | |
Map<String, Object> resources = ctx.getBeansWithAnnotation(Path.class); | |
for (Map.Entry<String, Object> entry : resources.entrySet()) { | |
Object resource = entry.getValue(); | |
Class<? extends Object> cls = resource.getClass(); | |
if (cls.isAnnotationPresent(Path.class)) | |
System.out.println(cls); | |
jersey.register(resource); | |
} |
NewerOlder