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
import asyncio | |
import iterm2 | |
""" | |
This is where you put your configuration. | |
Edit this hash once you've set up your iTerm2 Profiles and created any | |
[user-defined](https://iterm2.com/documentation-scripting-fundamentals.html#setting-user-defined-variables) | |
[variables](https://iterm2.com/documentation-variables.html). |
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
import autobahn from 'autobahn'; | |
const RPC_ADD2 = 'com.myapp.add2'; | |
let connection = new autobahn.Connection({ | |
url: 'ws://127.0.0.1:9000/ws', | |
realm: 'realm1', | |
use_es6_promises: true | |
}); |
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
import {Connection} from 'autobahn'; | |
var connection = new Connection({ | |
url: 'ws://127.0.0.1:8080/ws', | |
realm: 'realm1', | |
use_es6_promises: true | |
}); | |
connection.onopen = (session) => { | |
session.subscribe('com.myapp.page', (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
function orient | |
{ | |
if [ "$1" == 'db' ] | |
then | |
command="orientdb" | |
else | |
command="$1" | |
fi | |
sh $HOME/Library/OrienTechnologies/OrientDB-1.7/bin/$command.sh ${*:2} | |
} |
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
file = File.new ARGV.shift, "r" | |
test_size = file.gets.to_i | |
(1..test_size).each do |item_num| | |
$stdout << "Case ##{item_num}: " | |
end |