This file contains hidden or 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
| " System vimrc file for MacVim | |
| " | |
| " Maintainer: feel free | |
| " Last Change: Wed 20 Feb 2019 | |
| set nocompatible | |
| " The default for 'backspace' is very confusing to new users, so change it to a | |
| " more sensible value. Add "set backspace&" to your ~/.vimrc to reset it. | |
| set backspace+=indent,eol,start |
This file contains hidden or 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 gulp = require('gulp'), | |
| watch = require('gulp-watch'), | |
| gutil = require( 'gulp-util' ), | |
| sass = require('gulp-sass'), | |
| notify = require("gulp-notify"), | |
| ftp = require( 'vinyl-ftp' ); | |
| gulp.task( 'deploy', ['css'], function () { | |
This file contains hidden or 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
| " System vimrc file for MacVim | |
| " | |
| " Maintainer: Bjorn Winckler <[email protected]> | |
| " Last Change: Sat Aug 29 2009 | |
| set nocompatible | |
| " The default for 'backspace' is very confusing to new users, so change it to a | |
| " more sensible value. Add "set backspace&" to your ~/.vimrc to reset it. | |
| set backspace+=indent,eol,start |
This file contains hidden or 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
| -- phpMyAdmin SQL Dump | |
| -- version 4.2.11 | |
| -- http://www.phpmyadmin.net | |
| -- | |
| -- Host: 127.0.0.1 | |
| -- Czas generowania: 01 Paź 2015, 15:57 | |
| -- Wersja serwera: 5.6.21 | |
| -- Wersja PHP: 5.6.3 | |
| SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO"; |
This file contains hidden or 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 validate_phone($phone){ | |
| if( | |
| !preg_match("/\(\d{2}\) \d{3}-\d{2}-\d{2}/",$phone) && | |
| !preg_match("/\d{3}-\d{3}-\d{3}/",$phone) | |
| ){ | |
| $this->form_validation->set_message('validate_phone', 'Pole {field} nie zawiera poprawnego numeru telefonu'); | |
| return false; | |
| } else { | |
| return true; |
This file contains hidden or 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
| http://stackoverflow.com/questions/7487189/closure-table-the-best-select-query | |
| http://stackoverflow.com/questions/192220/what-is-the-most-efficient-elegant-way-to-parse-a-flat-table-into-a-tree |
This file contains hidden or 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 progressbar = $("#progressbar"), | |
| bar = progressbar.find('.uk-progress-bar'), | |
| settings = { | |
| action: '/ajax/add_slideshow_pic', // upload url | |
| param: 'userfile', | |
| type: 'json', | |
| allow : '*.(jpg|gif|png)', // allow only images |
This file contains hidden or 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
| CREATE TABLE IF NOT EXISTS `countries` ( | |
| `id` int(11) NOT NULL AUTO_INCREMENT, | |
| `name` text NOT NULL, | |
| PRIMARY KEY (`id`) | |
| ) ENGINE=InnoDB DEFAULT CHARSET=utf8 AUTO_INCREMENT=51 ; | |
| INSERT INTO `countries` (`id`, `name`) VALUES | |
| (1, 'Albania'), | |
| (2, 'Andorra'), | |
| (3, 'Armenia'), |
This file contains hidden or 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
| set nocompatible " not compatible with the old-fashion vi mode | |
| set bs=2 " allow backspacing over everything in insert mode | |
| set history=50 " keep 50 lines of command line history | |
| set ruler " show the cursor position all the time | |
| set autoread " auto read when file is changed from outside | |
| set nu " show line numbers | |
| filetype on " Enable filetype detection | |
| filetype indent on " Enable filetype-specific indenting |
This file contains hidden or 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
| ##### CodeIgniter Snippets ##### | |
| # Generic $this-> | |
| snippet this | |
| $this->${1:model/controller}->${2:method}(${3:array});${4} | |
| # New Model Class | |
| snippet classm | |
| <?php | |
| /* | |
| * ${1:Describe the model's purpose} | |
| */ |