This file contains hidden or 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
<div class="main"> | |
<p></p> | |
<p></p> | |
<p></p> | |
<div> |
This file contains hidden or 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 Gnuplot | |
g = Gnuplot.Gnuplot () | |
xlist = [0.8, 1.7, 0.8, 0.7, 2.0,1.5] | |
result = [] | |
for x in xlist: | |
result.append ([xlist.index(x), x]) |
This file contains hidden or 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
#!/usr/bin/seed | |
const Clutter = imports.gi.Clutter; | |
const Gio = imports.gi.Gio | |
const LEFT = 113; | |
const RIGHT = 114; | |
var gallery = { | |
stage: null, | |
icons: null, |
This file contains hidden or 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
// Sample extension code, makes clicking on the panel show a message | |
const St = imports.gi.St; | |
const Mainloop = imports.mainloop; | |
const Main = imports.ui.main; | |
function _showHello() { | |
let text = new St.Label({ style_class: 'helloworld-label', text: "Hello, world!" }); | |
let monitor = global.get_primary_monitor(); | |
global.stage.add_actor(text); |
This file contains hidden or 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
// Sample extension code, makes clicking on the panel show a message | |
const St = imports.gi.St; | |
const Mainloop = imports.mainloop; | |
const Tweener = imports.ui.tweener; | |
const Main = imports.ui.main; | |
function _showHello() { | |
let text = new St.Label({ style_class: 'helloworld-label', | |
text: "Hello, world!" }); |
This file contains hidden or 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
#!/usr/bin/env python | |
flickr = "http://www.flickr.com/photos/%s/" | |
people = ['johnroyer', 'huanglifu', 'othree', | |
'ernest', '38664137@N07', 'bobchao', | |
'kaba', 'matrixneo', 'acelan', 'sntc06', | |
'kkbox', 'timchen86', 'greenerc', | |
'jnlinn', 'joustonhuang', 'lagunawang', | |
'bizkit', 'ckm', 'jccchou', 'edwardc'] |
This file contains hidden or 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
<html> | |
<head> | |
<link rel="stylesheet" href="./ui.css" type="text/css" media="all" /> | |
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.4.2/jquery.min.js"></script> | |
<script src="./ui.js"></script> | |
</head> | |
<body> | |
<div class="demo"> | |
<img id="cover-art"></img> |
This file contains hidden or 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
Seed.include("./dbus-rhythmbox.js"); | |
function sendNotification(summary, body, timeOut) { | |
var notification = new Notify.Notification({summary:summary, body:body}); | |
notification.set_timeout(timeOut); | |
notification.show(); | |
} | |
function getWindows () { | |
Wnck = imports.gi.Wnck; |
This file contains hidden or 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
// Sample extension code, makes clicking on the panel show a message | |
const St = imports.gi.St; | |
const Mainloop = imports.mainloop; | |
const Tweener = imports.ui.tweener; | |
const Clutter = imports.gi.Clutter; | |
const Main = imports.ui.main; | |
function _eatMushroom () { | |
global.log ("eat mushroom"); |
This file contains hidden or 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
#!/usr/bin/env python | |
# -*- coding: utf-8 -*- | |
from urllib2 import urlopen | |
from urllib import urlencode | |
import simplejson | |
import sys | |
def translate(text): | |
sl="zh-tw" |