View gologging_test.go
package main | |
import ( | |
logging "github.com/op/go-logging" | |
"io/ioutil" | |
"log" | |
"os" | |
"testing" | |
) |
View rainbow_brackets.xml
<application> | |
<component name="RainbowSettings"> | |
<option name="rainbowifyHTMLInsideJS" value="true" /> | |
<option name="version" value="5.1" /> | |
<option name="lightRoundBracketsColors"> | |
<array> | |
<option value="0x263238" /> | |
<option value="0x455a64" /> | |
<option value="0x607d8b" /> | |
<option value="0x90a4ae" /> |
View stylus-dark.user.css
body, #stylus-popup { | |
background-color: #292929; | |
color: #e6e6e6; | |
} | |
a, .disabled a:hover, select { | |
color: #e6e6e6; | |
} | |
input[type="checkbox"]:not(.slider) { | |
background-color: #404040; | |
} |
View qr-pure-js.js
(function() { | |
function cssAsNum(width){ | |
return Number(width.replace("px","")) | |
} | |
var body,img; | |
body = document.body; | |
img = document.createElement("img"); | |
img.style.userSelect = "none"; | |
img.style.position = "fixed"; | |
img.style.zIndex = 999999; |
View git-version.gradle
/** | |
* Copyright 2016 Avinash Ananth Narayan R | |
* Licensed under the Apache License, Version 2.0 (the "License"); | |
* you may not use this file except in compliance with the License. | |
* You may obtain a copy of the License at | |
* | |
* http://www.apache.org/licenses/LICENSE-2.0 | |
* | |
* Unless required by applicable law or agreed to in writing, software | |
* distributed under the License is distributed on an "AS IS" BASIS, |
View script.groovy
def dir = new File('path_to_sdk') | |
def licenses = new File(dir, 'licenses') | |
if (!licenses.exists()) licenses.mkdir() | |
dir.listFiles().each { println it } | |
def pw = new PrintWriter(new File(licenses, 'android-sdk-license')) | |
pw.println('8933bad161af4178b1185d1a37fbf41ea5269c55') |
View bandcamp.js
var commands = []; | |
commands.push('mkdir "' + TralbumData.current.title + '"'); | |
commands.push('cd "' + TralbumData.current.title + '"'); | |
TralbumData.trackinfo.forEach(function (track, index) { | |
if (track.file) { | |
var href = track.file['mp3-128']; |
View custom_rules.xml
<?xml version="1.0" encoding="UTF-8"?> | |
<project name="application-custom"> | |
<macrodef name="git" taskname="@{taskname}"> | |
<attribute name="command" /> | |
<attribute name="dir" default="" /> | |
<attribute name="property" default="" /> | |
<attribute name="taskname" default="" /> | |
<attribute name="failonerror" default="on" /> | |
<element name="args" optional="true" /> |
View factory.js
function createObject (clazz, args) { | |
var o; | |
if (Object.create) { | |
o = Object.create(clazz) | |
clazz.constructor.apply(xx, args); | |
} else { | |
// screwed! nothing other than evil-eval :-( | |
o = eval("new " + clazz.constructor.name + "(" + args + ")"); | |
} | |
} |
View jquery.ui.widget-(partial).js
$.widget.bridge = function( name, object ) { | |
var fullName = object.prototype.widgetFullName || name; | |
$.fn[ name ] = function( options ) { | |
var isMethodCall = typeof options === "string", | |
args = slice.call( arguments, 1 ), | |
returnValue = this; | |
// allow multiple hashes to be passed on init | |
options = !isMethodCall && args.length ? | |
$.widget.extend.apply( null, [ options ].concat(args) ) : |
NewerOlder