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
{ | |
"name": "aflangofas/json", | |
"require": { | |
"fzaninotto/faker": "^1.6" | |
}, | |
"authors": [ | |
{ | |
"name": "Antonis Flangofas", | |
"email": "[email protected]" | |
} |
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
<?php | |
$items = [ | |
'Aluminium Manufacturing', | |
'Cement Manufacturing', | |
'Chemicals', | |
'Chemicals - Fertilizers', | |
'Chemicals - Methanol', | |
'Construction', | |
'Contract Laboratory Services', | |
'Education', |
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
<?php | |
namespace App\Traits; | |
trait MimeTypeTrait | |
{ | |
/** | |
* MIME Types | |
* | |
* @link http://stackoverflow.com/questions/6654351/check-file-uploaded-is-in-csv-format#answer-13032788 | |
* @link http://www.rfc-editor.org/rfc/rfc3778.txt |
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
public function index($sliderId = null) | |
{ | |
$exists = $this->Slides->Sliders->exists(['id' => $sliderId]); | |
if (!$exists) { | |
throw new RecordNotFoundException(__('Cannot find the provided slider')); | |
} | |
$this->paginate = [ | |
'contain' => ['Sliders'] | |
]; | |
$query = $this->Slides |
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
/** | |
* Image loader | |
*/ | |
var ImageLoader = function() { | |
//Constructor | |
}; | |
/** | |
* This function can be used to load heavy images(when page is loaded) | |
* or dynamic images which we don't want to load with their container at once. |
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
{ | |
"color_scheme": "Packages/Dayle Rees Color Schemes/sublime/contrast/solarflare-contrast.tmTheme", | |
"font_size": 10.0, | |
"ignored_packages": | |
[ | |
"Vintage" | |
], | |
"line_padding_bottom": 1, | |
"line_padding_top": 1 | |
} |
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
syntax on | |
set number | |
set wrap | |
set laststatus=2 " Always show the statusline | |
set title " Set the title of the window in the terminal to the file | |
set history=500 " History | |
set backup | |
"Followin cmd must be configure with X11 | |
set clipboard+=unnamed " Yank to system clipboard | |
set showcmd " Display an incomplete command in the lower right corner of the Vim window |
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
[user] | |
name = Antonis Flangofas | |
email = [email protected] | |
[color] | |
ui = true | |
[color "branch"] | |
current = yellow reverse | |
local = yellow | |
remote = green | |
[color "diff"] |
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
#Bring current branch up to date with master one | |
alias git-sync="git checkout master && git pull origin master && git checkout - && git merge master" |
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
<!DOCTYPE html> | |
<html lang="en"> | |
<head> | |
<title>Web Storage Example</title> | |
<meta charset="UTF-8" /> | |
<script> | |
window.addEventListener('load', function(event) { | |
var key = document.getElementById('key'); | |
var value = document.getElementById('value'); | |
var add = document.getElementById('add'); |