var signalingChannel = new SignalingChannel(); var conn;
// call start() to initiate function start() { var sock = new RTCSocket([{ url: "stun:stun.example.org" }]); conn = new RTCConnection(sock);
// send my ICE details to the other peer
# Copyright (c) 2011 The WebRTC project authors. All Rights Reserved. | |
# | |
# Use of this source code is governed by a BSD-style license | |
# that can be found in the LICENSE file in the root of the source | |
# tree. An additional intellectual property rights grant can be found | |
# in the file PATENTS. All contributing project authors may | |
# be found in the AUTHORS file in the root of the source tree. | |
MY_WEBRTC_ROOT_PATH := $(call my-dir) |
APP_BUILD_SCRIPT = Android.mk | |
APP_PLATFORM := android-9 | |
APP_CPPFLAGS += -fno-rtti | |
APP_ABI := armeabi | |
APP_STL := stlport_static |
import re | |
def _camel_to_underscore_case(name): | |
""" | |
Translate 'CamelCaseNames' to 'camel_case_names'. | |
""" | |
camelcase_boundry = '((?<=[a-z])[A-Z])' | |
return re.sub(camelcase_boundry, '_\\1', name).lower() | |
def camel_to_underscore_case(obj, deep=True): |
import re | |
def _camel_to_underscore_case(name): | |
""" | |
>>> _camel_to_underscore_case('CamelCaseNames') | |
'camel_case_names' | |
""" | |
camel_boundry = '((?<=[a-z])[A-Z])' | |
return re.sub(camel_boundry, '_\\1', name).lower() |
@authorize | |
def invalid(): | |
get(URL,x,x,y) | |
assert_response(200, xpath) | |
assert_db(Users.objects.find('xxx')) |
import time | |
import cPickle as pickle | |
import json | |
import cjson | |
import ujson | |
d = { | |
'foo': 'bar', | |
'food': 'barf', | |
'good': 'bars', |
var net = require('net'), | |
ws = require('ws'), | |
sip = require('sip'); | |
var wss = new ws.Server({port: 8080}); | |
var LINES_FILTER_REGEX = /^a=candidate.*|^a=crypto.*/;//|^a=ssrc.*/; | |
wss.on('connection', function(ws) { | |
console.log('received connection'); |
#!/bin/sh | |
# https://github.com/egirault/googleplay-api | |
GOOGLEPLAY_API_PATH=/Users/ggb/software/tools/googleplay-api | |
# http://code.google.com/p/dex2jar/ | |
DEX2JAR_PATH=/Users/ggb/software/tools/dex2jar-0.0.9.8 | |
# http://www.varaneckas.com/jad/ | |
JAD_PATH=/Users/ggb/software/tools/jad158g.mac.intel | |
${GOOGLEPLAY_API_PATH}/download.py $1 |
var signalingChannel = new SignalingChannel(); var conn;
// call start() to initiate function start() { var sock = new RTCSocket([{ url: "stun:stun.example.org" }]); conn = new RTCConnection(sock);
// send my ICE details to the other peer
<!doctype> | |
<link type="text/css" rel="stylesheet" href="http://code.jquery.com/ui/1.10.3/themes/smoothness/jquery-ui.css"> | |
<link type="text/css" rel="stylesheet" href="../src/css/graph.css"> | |
<link type="text/css" rel="stylesheet" href="../src/css/detail.css"> | |
<link type="text/css" rel="stylesheet" href="../src/css/legend.css"> | |
<link type="text/css" rel="stylesheet" href="css/extensions.css"> | |
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.6.2/jquery.min.js"></script> | |
<script src="https://ajax.googleapis.com/ajax/libs/jqueryui/1.8.15/jquery-ui.min.js"></script> |