Skip to content

Instantly share code, notes, and snippets.

<select name="">
<option value="USD" selected="selected">United States Dollars</option>
<option value="EUR">Euro</option>
<option value="GBP">United Kingdom Pounds</option>
<option value="DZD">Algeria Dinars</option>
<option value="ARP">Argentina Pesos</option>
<option value="AUD">Australia Dollars</option>
<option value="ATS">Austria Schillings</option>
<option value="BSD">Bahamas Dollars</option>
<option value="BBD">Barbados Dollars</option>
@conglin
conglin / set_lang.js
Created June 1, 2018 07:17
set html.lang attr
$=bonline.require("jquery");
Cookies = bonline.require("cookie");
var saveNode = function(ref, kind, val) {
return $.ajax({
type : "POST",
cache : false,
url : `/edit/save/${ref}/${kind}/`,
data : {value:val},
headers : { "X-CSRFToken" : Cookies.get("csrftoken") },
$=bonline.require("jquery");
Cookies = bonline.require("cookie");
var set_latitude= $.ajax({
type : "POST",
cache : false,
url : "/edit/save/root/latitude/",
data : {value:'54.8287'},
headers : { "X-CSRFToken" : Cookies.get("csrftoken") },
@conglin
conglin / Jiaplatform设备初始化流程.md
Created April 27, 2017 06:57
Jiaplatform设备初始化流程

#Jiaplatform设备初始化流程文档

##1. 第一次打开设备或者用户reset设备后: 设备应当以如下方式启动wifi热点:

ssid:
Jiaplatform_device_<设备uuid>
密码为空

同时在设备上启动http服务器等待app端连接,服务器地址在 http://192.168.1.2/setup_wifi/

<script>
$ = bonline.require("jquery");
$(document).ready(function() {
$.fancybox.init();
}
</script>
"""
I've been thinking lately about how perfect Redis would be for storing a
simple social graph. I posited that it would be relatively few lines of code,
and that it'd be clean code too. So here it is: a basic social graph built on Redis.
"""
class FriendGraph(object):
def __init__(self, ring):
self.ring = ring