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
<?php | |
//Options | |
$token = 'YOUR_TOKEN_HERE'; | |
$domain = 'YOUR_SLACK_DOMAIN_GOES_HERE'; | |
$channel = '#general'; | |
$bot_name = 'Webhook'; | |
$icon = ':alien:'; | |
$message = 'Your message'; |
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
<?php | |
/** | |
* JSON Web Token implementation, based on this spec: | |
* http://tools.ietf.org/html/draft-ietf-oauth-json-web-token-06 | |
* | |
* PHP version 5 | |
* | |
* @category Authentication | |
* @package Authentication_JWT | |
* @author Neuman Vong <[email protected]> |
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
/* | |
##Device = Desktops | |
##Screen = 1281px to higher resolution desktops | |
*/ | |
@media (min-width: 1281px) { | |
//CSS | |
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
/*===================================================== | |
Twitter Bootstrap | |
=====================================================*/ | |
/* Large desktop */ | |
@media (min-width: 1200px) { ... } | |
/* Portrait tablet to landscape and desktop */ | |
@media (min-width: 768px) and (max-width: 979px) { ... } | |
/* Landscape phone to portrait tablet */ |
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
<?php | |
/** | |
* Lightens/darkens a given colour (hex format), returning the altered colour in hex format.7 | |
* @param str $hex Colour as hexadecimal (with or without hash); | |
* @percent float $percent Decimal ( 0.2 = lighten by 20%(), -0.4 = darken by 40%() ) | |
* @return str Lightened/Darkend colour as hexadecimal (with hash); | |
*/ | |
function color_luminance( $hex, $percent ) { | |
// validate hex string |
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
function throttle(type, name, obj) { | |
var running = false; | |
obj = obj || window; | |
var func = function() { | |
if (running) return; | |
running = true; |
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
(function(){ | |
var SCROLL_WIDTH = 24; | |
var btn_popup = document.getElementById("btn_popup"); | |
var popup = document.getElementById("popup"); | |
var popup_bar = document.getElementById("popup_bar"); | |
var btn_close = document.getElementById("btn_close"); | |
var smoke = document.getElementById("smoke"); |
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
function inherit(pThis, pBase) { | |
pThis.prototype = Object.create(pBase.prototype); | |
pThis.prototype.constructor = pThis; | |
pThis.prototype.super = pBase.prototype; | |
} | |
function Animal() { | |
this.type = 'animal'; | |
this.num = 34; | |
} |
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
var extend = function(target, source) { | |
for (var i in source) { | |
if (source.hasOwnProperty(i)) { | |
target[i] = source[i]; | |
} | |
} | |
return target; | |
}; | |
var objectCreate = function(ParentProto, ChildProto) { |
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
/** | |
* Debounce and throttle function's decorator plugin 1.0.5 | |
* | |
* Copyright (c) 2009 Filatov Dmitry ([email protected]) | |
* Dual licensed under the MIT and GPL licenses: | |
* http://www.opensource.org/licenses/mit-license.php | |
* http://www.gnu.org/licenses/gpl.html | |
* https://habrahabr.ru/post/60957/ | |
* | |
*/ |
NewerOlder