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
.gbqfif, .gbqfsf,li.g, body, html, .std, h1 { | |
font-family: "Open Sans"; | |
} | |
.sbib_b { | |
padding: 3px 7px 0; | |
} | |
#rhs ._za.vk_pl { | |
padding-left: 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
// Get a random number in a specific range | |
function randomInRange(max, min) { | |
return Math.floor(Math.random() * (max - min + 1)) + min; | |
} | |
// Get a random item from an array | |
function randomFromArray(items) { | |
return items[Math.floor(Math.random() * items.length)]; | |
} |
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
if (typeof Object.create != 'function') { | |
Object.create = (function() { | |
var Temp = function() {}; | |
return function (prototype) { | |
if (arguments.length > 1) { | |
throw Error('2nd argument is not supported'); | |
} | |
if (typeof prototype != 'object') { | |
throw TypeError('argument should be object'); |
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
class Coupon { | |
constructor(options) { | |
this.title = options.title; | |
this.desc = options.desc; | |
this.code = options.code; | |
this.link = options.link; | |
this.expiry = options.expiry; | |
} | |
} |
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
array1 = [0,1,2,3,4,5,6] | |
[0, 1, 2, 3, 4, 5, 6] | |
array1.splice(2) -> default first argument is 0 | |
[2, 3, 4, 5, 6] | |
array1 | |
[0, 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
$("<h1/>",{ | |
text: "discription", | |
id="" | |
}).appendTo(element); | |
var newElement = $("<div/>",{id="",class=""}).appendTo(element); |
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
/**********************************************/ | |
/* | |
/* IR_Black Skin by Ben Truyman - 2011 | |
/* | |
/* Based on Todd Werth's IR_Black: | |
/* http://blog.toddwerth.com/entries/2 | |
/* | |
/* Inspired by Darcy Clarke's blog post: | |
/* http://darcyclarke.me/design/skin-your-chrome-inspector/ | |
/* |
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 | |
let sleepTime="15*60"; | |
while [ 1 ] | |
do | |
if [ $(( $RANDOM % 2)) == 0 ] | |
then | |
echo "switching to NTWRK1"; | |
networksetup -setairportnetwork en1 {NTWRK_NAME} {NTWRK_PSWD} | |
else |
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
#gdx-bubble-container { | |
display:block!important; | |
z-index:99991!important; | |
} | |
#gdx-bubble-container,#gdx-bubble-container * { | |
//background:#fff!important; | |
background-repeat:no-repeat!important; |
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
::-webkit-scrollbar { | |
height:16px; | |
overflow:visible; | |
width:16px; | |
} | |
::-webkit-scrollbar-button { | |
height:0; | |
width:0; |