Skip to content

Instantly share code, notes, and snippets.

[ 0.000000] Initializing cgroup subsys cpuset
[ 0.000000] Initializing cgroup subsys cpu
[ 0.000000] Initializing cgroup subsys cpuacct
[ 0.000000] Linux version 3.16.0-36-generic ([email protected]) (gcc version 4.9.2 (Endless 4.9.2-10ubuntu9bem1) ) #48+dev81.68e2822bem1-Endless SMP Mon May 11 20:38:34 UTC 2015 (Ubuntu 3.16.0-36.48+dev81.68e2822bem1-generic 3.16.7-ckt9)
[ 0.000000] KERNEL supported cpus:
[ 0.000000] Intel GenuineIntel
[ 0.000000] AMD AuthenticAMD
[ 0.000000] NSC Geode by NSC
[ 0.000000] Cyrix CyrixInstead
[ 0.000000] Centaur CentaurHauls
[ 67.310]
X.Org X Server 1.17.1
Release Date: 2015-02-10
[ 67.311] X Protocol Version 11, Revision 0
[ 67.311] Build Operating System: Linux 3.2.0-4-686-pae i686 Endless
[ 67.312] Current Operating System: Linux endless 3.16.0-36-generic #48+dev81.68e2822bem1-Endless SMP Mon May 11 20:38:34 UTC 2015 i686
[ 67.312] Kernel command line: BOOT_IMAGE=/vmlinuz-3.16.0-36-generic root=UUID=bb774ec3-ff46-4ef9-8721-aa202af0020a ro root=LABEL=ostree rw splash plymouth.ignore-serial-consoles quiet systemd.unit=multi-user.target
[ 67.312] Build Date: 18 May 2015 10:41:57PM
[ 67.313] xorg-server 2:1.17.1-0ubuntu3endless6bem1 (For technical support please see http://www.ubuntu.com/support)
[ 67.313] Current version of pixman: 0.32.6
[ 60.291]
X.Org X Server 1.17.1
Release Date: 2015-02-10
[ 60.293] X Protocol Version 11, Revision 0
[ 60.293] Build Operating System: Linux 3.2.0-4-686-pae i686 Endless
[ 60.293] Current Operating System: Linux endless 3.16.0-36-generic #48+dev81.68e2822bem1-Endless SMP Mon May 11 20:38:34 UTC 2015 i686
[ 60.293] Kernel command line: BOOT_IMAGE=/vmlinuz-3.16.0-36-generic root=UUID=bb774ec3-ff46-4ef9-8721-aa202af0020a ro root=LABEL=ostree rw splash plymouth.ignore-serial-consoles quiet systemd.unit=multi-user.target
[ 60.294] Build Date: 18 May 2015 10:41:57PM
[ 60.294] xorg-server 2:1.17.1-0ubuntu3endless6bem1 (For technical support please see http://www.ubuntu.com/support)
[ 60.294] Current version of pixman: 0.32.6
import urllib2
unicode_url = u'http://en.wikipedia.org/wiki/1._FC_N%C3%BCrnberg'
print urllib2.unquote(unicode_url)
string_url = 'http://en.wikipedia.org/wiki/1._FC_N%C3%BCrnberg'
print urllib2.unquote(string_url)
#!/usr/bin/env python
# -*- coding: utf-8 -*-
uri = 'http://es.wikipedia.org/wiki/México'
article_set = set([u'http://es.wikipedia.org/wiki/México'])
print uri in article_set
function func (foo="hello", bar=false) {
print(foo)
print(bar)
}
func(bar=true)
Disco /dev/mmcblk0: 15.8 GB, 15762194432 bytes
32 cabeças, 32 setores/trilhas, 30064 cilindros, total de 30785536 setores
Unidades = setores de 1 * 512 = 512 bytes
Tamanho do setor (lógico/físico): 512 bytes / 512 bytes
Tamanho da E/S (mínimo/ideal): 512 bytes / 512 bytes
Identificador do disco: 0x00000000
Dispositivo Boot Início Fim Blocos Id Sistema
/dev/mmcblk0p1 * 6144 194559 94208 83 Linux
/dev/mmcblk0p2 194560 30785535 15295488 83 Linux
const Gtk = imports.gi.Gtk;
const Pango = imports.gi.Pango;
Gtk.init(null);
let text = " Mon: ကျာ် လ္ဂုၚ်.";
let label = new Gtk.Label({
ellipsize: Pango.EllipsizeMode.END,
lines: 2,
const Gtk = imports.gi.Gtk;
const WebKit2 = imports.gi.WebKit2;
const Lang = imports.lang;
Gtk.init(null);
// WebKit2.WebContext.get_default().register_uri_scheme('foo', function () {})
const MyWebView = new Lang.Class({
Name: 'MyWebView',
GTypeName: 'MyWebView',
const Gtk = imports.gi.Gtk;
const WebKit2 = imports.gi.WebKit2;
Gtk.init(null);
let webview = new WebKit2.WebView();
webview.connect('load-changed', function (event, view) {
print("load-changed called")
});