Skip to content

Instantly share code, notes, and snippets.

🐛
Killer

Vytenis FDiskas

  • Lithuania
View GitHub Profile
@FDiskas
FDiskas / polyfills.js
Last active Aug 24, 2017
localStorage polyfill for jest #jest #localStorage
View polyfills.js
global.localStorage = {
getItem(key) {
return this[key];
},
setItem(key, value) {
this[key] = value;
},
removeItem(key) {
delete this[key];
},
@FDiskas
FDiskas / .babelrc
Last active Nov 3, 2016
Reproducible bug. `npm install` works. And `yarn` not works.
View .babelrc
{ "presets": [ "es2015" ] }
View gulpfile.js
var gulp = require('gulp');
var kss = require('kss');
var config = { path: { dest: './dist', src: './src' } };
gulp.task('styleguide', function(){
return kss({
"source": [
config.path.src + "/sass"
],
"destination": config.path.dest + "/styleguide/",
"css": [
@FDiskas
FDiskas / Nature.md
Created May 10, 2016
GitHub all emoji cheat sheet
View Nature.md
Picture emoji code
☀️ :sunny:
☔️ :umbrella:
☁️ :cloud:
❄️ :snowflake:
⛄️ :snowman:
⚡️ :zap:
🌀 :cyclone:
🌁 :foggy:
@FDiskas
FDiskas / .bowerrc
Created Mar 17, 2016
laravel-elixir + laravel-elixir-wiredep + laravel-elixir-useref + asset
View .bowerrc
{
"directory": "public/assets/vendor"
}
@FDiskas
FDiskas / MY_Controller.php
Created May 26, 2015
Autocomplete for PhpStorm
View MY_Controller.php
<?php
/**
* @property CI_DB_active_record $db
* @property CI_DB_forge $dbforge
* @property CI_Benchmark $benchmark
* @property CI_Calendar $calendar
* @property CI_Cart $cart
* @property CI_Controller $controller
* @property CI_Email $email
* @property CI_Encrypt $encrypt
View MY_Parser.php
<?php if (!defined('BASEPATH')) exit('No direct script access allowed');
/**
* CodeIgniter
* An open source application development framework
*
* @package CodeIgniter * @author Rick Ellis
* @copyright Copyright (c) 2006, EllisLab, Inc.
* @license http://www.codeignitor.com/user_guide/license.html
* @link http://www.codeigniter.com * @since Version 1.0
*/
View gist:10823786
function versija() {
return '1.46';
}
}
@FDiskas
FDiskas / intro.html
Last active Dec 17, 2015
Intro tooltip
View intro.html
<span class="introtip pos-a w-250 d-n" id="tooltip">
<div class="tip rounded all shadow mark b-sol b-both pos-r">
<div class="p-both">
<a href="javascript:window.tour.close()" class="pos-a tr"><img src="cross_grey_small.png" class="m-t5 m-r5"></a>
<span id="introTipMessage">
<strong>Visada galite mums paskambinti.</strong>
Jei susidūrėte su problema, ar sistemine klaida ar kitokiais neaiškumais. Visada galime mums paskambinti šiuo numeriu. Skambinti galite visą parą, 7 dienas per savaitę ir visiškai nemokamai.
</span>
You can’t perform that action at this time.