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
javascript:(function(){ | |
location.assign("http://192.168.0.1/bsc_wlan.php"); | |
document.getElementById("enable").checked = !document.getElementById("enable").checked; | |
check(); | |
})() |
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
// TeXworksScript | |
// Title: Make Equations | |
// Shortcut: Ctrl+Shift+Q | |
// Description: Create new equation array. | |
// Author: Roman Zeyde | |
// Version: 0.1 | |
// Date: 2011-11-20 | |
// Script-Type: standalone | |
// Context: TeXDocument |
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
# Generated with Conky Wizard | |
# Copyright (C) 2010 José David Abad GarcÃa | |
# GPL Version 3 | |
# | |
# WARNING! All changes made in this file will be lost if the program runs again! | |
# Default Fonts | |
use_xft yes | |
xftfont Ubuntu:size=10 | |
override_utf8_locale yes |
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/python | |
# Usage for .conkyrc: | |
# ${execi 15 ~/weather.py 40155} | |
import sys | |
import re | |
from urllib2 import urlopen | |
url = 'http://rss.wunderground.com/auto/rss_full/global/stations/' | |
station_id, = sys.argv[1:] |
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
git filter-branch -f --env-filter "export GIT_AUTHOR_NAME='Roman Zeyde'; export GIT_COMMITTER_NAME='Roman Zeyde'; export GIT_AUTHOR_EMAIL='[email protected]'; export GIT_COMMITTER_EMAIL='[email protected]'" HEAD |
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
class Dict(dict): | |
''' Extends Python dictionary for attribute access, so d.foo is the same as d['foo']. ''' | |
def __setattr__(self, name, val): | |
dict.__setitem__(self, name, val) | |
def __getattr__(self, name): | |
return dict.__getitem__(self, name) | |
def __delattr__(self, name): | |
return dict.__delitem__(self, name) |
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
profile('on'); | |
%%%%%%%%%%%%%%%%%%% | |
% Code to profile % | |
%%%%%%%%%%%%%%%%%%% | |
profile('off'); | |
prof = profile('info'); | |
profview(0, prof); |
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
function v = version() | |
[~, version] = git('--no-pager', 'log -n1 --format=format:"%h (%ci)"'); |
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
function [status, result] = git(varargin) | |
cmd = 'unset LD_LIBRARY_PATH; git --no-pager'; | |
for i = 1:numel(varargin) | |
cmd = [cmd ' ' varargin{i}]; | |
end | |
switch nargout | |
case 0, system(cmd); | |
case 1, [status] = system(cmd); | |
case 2, [status, result] = system(cmd); |
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
function [status, result] = git(varargin) | |
cmd = '"c:\Program Files\Git\cmd\git.cmd"'; | |
for i = 1:numel(varargin) | |
cmd = [cmd ' ' varargin{i}]; | |
end | |
switch nargout | |
case 0, system(cmd); | |
case 1, [status] = system(cmd); | |
case 2, [status, result] = system(cmd); |
NewerOlder