I hereby claim:
- I am jcubic on github.
- I am jcubic (https://keybase.io/jcubic) on keybase.
- I have a public key whose fingerprint is BC65 3F92 314B 398B 5E1E 0BC7 A58E E6F1 31F8 3013
To claim this, I am signing this object:
package com.example.package; | |
import android.content.Context; | |
import java.io.BufferedReader; | |
import java.io.IOException; | |
import java.io.InputStreamReader; | |
import java.io.StringWriter; | |
import java.io.PrintWriter; |
#!/bin/bash | |
file=/tmp/display | |
KBBL="/sys/class/leds/asus::kbd_backlight" | |
if [ -e $file ]; then | |
rm $file | |
sudo vbetool dpms on | |
[ -d $KBBL -o -f $KBBL ] && echo 3 | sudo tee $KBBL/brightness > /dev/null |
function jump() { | |
var match = location.hash.match(/^#css\((.*)\)$/); | |
if (match) { | |
window.scrollTo(0, document.querySelector(match[1]).offsetTop); | |
} | |
} | |
jump(); | |
window.addEventListener("hashchange", jump, false); |
.toggle-switch { | |
display: inline-block; | |
position: relative; | |
border-radius: 20px; | |
background-color: #E6E6E6; | |
padding: 10px; | |
-webkit-user-select:none; | |
-moz-user-select:none; | |
-ms-user-select: none; | |
} |
/**@license | |
* __ _____ ________ __ | |
* / // _ /__ __ _____ ___ __ _/__ ___/__ ___ ______ __ __ __ ___ / / | |
* __ / // // // // // _ // _// // / / // _ // _// // // \/ // _ \/ / | |
* / / // // // // // ___// / / // / / // ___// / / / / // // /\ // // / /__ | |
* \___//____ \\___//____//_/ _\_ / /_//____//_/ /_/ /_//_//_/ /_/ \__\_\___/ | |
* \/ /____/ version {{VER}} | |
* | |
* This file is part of jQuery Terminal. http://terminal.jcubic.pl | |
* |
$.fn.crossDomainRequest = function(url, method, data, fn) { | |
var self = this; | |
var receiver = self.attr('src').replace(/\/.*$/, '').replace(/^https?::\/\//, ''); | |
function get(event) { | |
if (event.origin.match(receiver)) { | |
// event.data is response from POST | |
fn(event.data); | |
} | |
} | |
if (window.addEventListener){ |
/* | |
* implementation of the alorithm from EcmaScript spec in section 15.1.2.4 | |
* http://www.ecma-international.org/publications/files/ECMA-ST-ARCH/ECMA-262,%201st%20edition,%20June%201997.pdf | |
*/ | |
(function(global) { | |
var allowed = 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789@*_+-./,'; | |
global.escapeString = function(str) { | |
str = str.toString(); | |
var len = str.length, R = '', k = 0, S, chr, ord; | |
while(k < len) { |
function findText( rootElement, textToFind ) { | |
var walker = document.createTreeWalker( rootElement, | |
NodeFilter.SHOW_TEXT, | |
null, | |
false ); | |
var texts = [], | |
nodes = []; | |
walker.firstChild(); | |
nodes.push( walker.currentNode ); |
(function() { | |
var matched, browser; | |
// Use of jQuery.browser is frowned upon. | |
// More details: http://api.jquery.com/jQuery.browser | |
// jQuery.uaMatch maintained for back-compat | |
jQuery.uaMatch = function( ua ) { | |
ua = ua.toLowerCase(); |
I hereby claim:
To claim this, I am signing this object: