Instantly share code, notes, and snippets.

🐦
fly like a bird ...

Kcko

View GitHub Profile
View youtube.php
<?php
namespace App\FrontModule\Components;
use App;
use Nette\Application\UI\Control;
use Nette\Caching\Cache;
use Nette\Caching\IStorage;
/**
View instagram.php
<?php
namespace App\FrontModule\Components;
use App;
use Nette\Caching\Cache;
use Nette\Caching\IStorage;
use Nette\Utils\Json;
/**
View font-size-helper.scss
//--- demand methods --- //
@function to-string($value) {
@return inspect($value);
}
/// Replace `$search` with `$replace` in `$string`
/// @author Hugo Giraudel
/// @param {String} $string - Initial string
/// @param {String} $search - Substring to replace
@Kcko
Kcko / VSC - backup - 2019-02-09
Last active Feb 9, 2019
Visual Studio Code Settings Sync Gist
View VSC - backup - 2019-02-09
{"lastUpload":"2019-02-09T17:05:40.213Z","extensionVersion":"v3.2.4"}
View unique.js
/*!
* getUniqueClass - v1.1 - 2/13/2010
* http://benalman.com/projects/jquery-misc-plugins/
*
* Copyright (c) 2010 "Cowboy" Ben Alman
* Dual licensed under the MIT and GPL licenses.
* http://benalman.com/about/license/
*/
// For when you really need a unique classname, (like when you're cloning a
View latte.json
{
"block": { "prefix": "block", "body": "{block ${1:content}}\n$0\n{/block}" },
"snippet": { "prefix": "snippet", "body": "{snippet ${1:content}}\n$0\n{/snippet}" },
"layout": { "prefix": "layout", "body": "{layout '${1:../@layout.latte}'}\n$0" },
"extends": { "prefix": "extends", "body": "{extends '${1:../@layout.latte}'}\n$0" },
"capture": { "prefix": "capture", "body": "{capture \\$${1:var}}\n$0\n{/capture}" },
"define": { "prefix": "define", "body": "{define ${1:content}}\n$0\n{/define}" },
"include": { "prefix": "include", "body": "{include #${1:content}}\n$0" },
"includeblock": { "prefix": "includeblock", "body": "{includeblock '${1:file.latte}'}\n$0" },
"foreach": { "prefix": "foreach", "body": "{foreach \\$$1s as \\$$1}\n$0\n{/foreach}" },
View pubsub.js
(function($) {
var o = $({});
var calledEvents = {};
$.subscribe = function() {
o.on.apply(o, arguments);
if (arguments[0] in calledEvents)
View pubsub.js
;(function(d){
// the topic/subscription hash
var cache = {};
d.publish = function(/* String */topic, /* Array? */args){
// summary:
// Publish some data on a named topic.
// topic: String
View raty.js
/*!
* jQuery Raty - A Star Rating Plugin
*
* The MIT License
*
* author: Washington Botelho
* github: wbotelhos/raty
* version: 2.9.0
*
*/
View twitter.js
// Utility
if ( typeof Object.create !== 'function' ) {
Object.create = function( obj ) {
function F() {};
F.prototype = obj;
return new F();
};
}
(function( $, window, document, undefined ) {