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 wx | |
class MainWindow(wx.Frame): | |
def __init__(self, parent, title): | |
wx.Frame.__init__(self, parent, title=title, size=(200,100)) | |
self.control = wx.TextCtrl(self, style=wx.TE_MULTILINE) | |
self.CreateStatusBar() # A Statusbar in the bottom of the window | |
# Setting up the menu. | |
filemenu= wx.Menu() |
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
#!/usr/bin/python3 | |
from gi.repository import Gtk, Gdk | |
import sys | |
class MyWindow(Gtk.Window): | |
def __init__(self): | |
Gtk.Window.__init__(self, title="Hello World") | |
self.set_name('MyWindow') |
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
#!/bin/sh | |
echo "current average capacity full_capacity time_left" | |
factor=0.7 | |
last_pwr=0 | |
charge_full=`cat /sys/class/power_supply/BAT0/charge_full` | |
voltage_min_design=`cat /sys/class/power_supply/BAT0/voltage_min_design` | |
full_pwr=`echo "scale=5; $charge_full * $voltage_min_design / 1000000 / 1000000" | bc` | |
while [ 1 ]; do | |
voltage_now=`cat /sys/class/power_supply/BAT0/voltage_now` |
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
#!/bin/dash | |
set -e | |
WDIR=/tmp/kylin | |
rm -rf ${WDIR} | |
Exit () | |
{ | |
echo "cleanup" |
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
#!/bin/sh | |
# Allow the driver to put the audio hardware to sleep | |
# once the driver has been inactive for a second. | |
# This hook should work with at least the ac97 and hda codecs. | |
help() { | |
cat <<EOF | |
-------- | |
$0: Intel Audio powersave parameters. |
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
94,107d93 | |
< u32 intel_xusb2pr = 0xFFFFFFFF; | |
< | |
< static int __init intel_xusb2pr_setup(char *str) | |
< { | |
< u32 value; | |
< if (kstrtoul(str, 16, &value)) { | |
< printk("Failed to convert value=%s\n", str); | |
< return 1; | |
< } |
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
#!/usr/bin/python | |
from lp_fish_tools.SomervilleShare import * | |
from lp_fish_tools.util import * | |
from datetime import date | |
import subprocess | |
import os | |
import ConfigParser | |
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
/************* | |
Blue Theme | |
*************/ | |
/* overall */ | |
.tablesorter-blue { | |
width: 100%; | |
background-color: #fff; | |
margin: 10px 0 15px; | |
text-align: left; | |
border-spacing: 0; |
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
/* | |
* cdc-acm.c | |
* | |
* Copyright (c) 1999 Armin Fuerst <[email protected]> | |
* Copyright (c) 1999 Pavel Machek <[email protected]> | |
* Copyright (c) 1999 Johannes Erdfelt <[email protected]> | |
* Copyright (c) 2000 Vojtech Pavlik <[email protected]> | |
* Copyright (c) 2004 Oliver Neukum <[email protected]> | |
* Copyright (c) 2005 David Kubicek <[email protected]> | |
* Copyright (c) 2011 Johan Hovold <[email protected]> |
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
// ==UserScript== | |
// @name facebook login | |
// @namespace http://123.123 | |
// @include https://www.facebook.com/* | |
// @version 1 | |
// @require http://ajax.aspnetcdn.com/ajax/jquery/jquery-1.7.2.js | |
// @require http://netdna.bootstrapcdn.com/bootstrap/3.0.0/js/bootstrap.min.js | |
// @resource bt http://netdna.bootstrapcdn.com/bootstrap/3.0.0/css/bootstrap.min.css | |
// @resource bt-theme http://netdna.bootstrapcdn.com/bootstrap/3.0.0/css/bootstrap-theme.min.css | |
// @grant GM_addStyle |
OlderNewer