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 | |
# battery_warn.sh | |
# Shows a OSD message if batter charge state is too low | |
# Copyright (c) 2012 Lajos Koszti | |
# | |
# Permission is hereby granted, free of charge, to any person obtaining | |
# a copy of this software and associated documentation files (the | |
# "Software"), to deal in the Software without restriction, including | |
# without limitation the rights to use, copy, modify, merge, publish, |
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/zsh | |
# enables connected, disables disconnected screens | |
xrandr_state=`xrandr` | |
current_vga_state=$(echo $xrandr_state | awk '/VGA-0/ {print $2}'); | |
current_dp_state=$(echo $xrandr_state | awk '/DP-0/ {print $2}'); | |
if [[ "$current_vga_state" = "connected" ]];then | |
xrandr --output LVDS-0 --primary | |
xrandr --output VGA-0 --auto --right-of LVDS-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
while true;do sleep 1; echo 0 > /sys/devices/platform/thinkpad_acpi/leds/tpacpi::thinklight/brightness;sleep 1;echo 1 > /sys/devices/platform/thinkpad_acpi/leds/tpacpi::thinklight/brightness;done; |
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/env node | |
/*jslint node: true*/ | |
var crypto = require('crypto'), | |
fs = require('fs'), | |
sys = require('sys'); | |
fs.readFile(process.argv[2], function (er, data) { | |
if (er) { | |
throw er; |
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
/*jslint browser: true*/ | |
(function () { | |
"use strict"; | |
var d = document, | |
a = document.createElement('div'), | |
i = 0, | |
e = '1px solid #a0a', | |
f, | |
g, | |
b, |
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/env node | |
/*jslint node: true*/ | |
process.chdir('../..'); | |
var spawn = require('child_process').spawn; | |
var parse = require('uglify-js').parse; | |
var readline = require('readline'); | |
var fs = require('fs'); | |
var files = []; |
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
YUI().use('node', 'test', function (Y) { | |
"use strict"; | |
var suite, spies, loginRequest, subscription; | |
spies = {}; | |
loginRequest = {}; | |
suite = new Y.Test.Suite({ | |
name: 'Test' | |
}); | |
suite.add(new Y.Test.Case({ | |
name: "Test removing iframe", |
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
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta http-equiv="content-type" content="text/html; charset=utf-8"> | |
<title>A</title> | |
<script type="text/javascript" src="https://www.google.com/jsapi"></script> | |
</head> | |
<body> | |
<button type="button" id="ChangeSize">Change Size</button> | |
<div id="ChartTest" style="width:1000px;"></div> |
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 | |
# Copyright (C) 2013 Lajos Koszti | |
# | |
# Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: | |
# | |
# The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. | |
# | |
# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE |
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
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta charset="utf-8"> | |
<title>My First Web App \o/</title> | |
<style type="text/css"> | |
body { | |
padding: 0; | |
margin: 0; | |
} |