The Laracasts PHPStorm theme.
https://www.dropbox.com/s/f4l3qc2falnvq61/laracasts_theme_updated.icls
(Add to ~/Library/Preferences/WebIde80/colors
on Mac.)
The Laracasts PHPStorm theme.
https://www.dropbox.com/s/f4l3qc2falnvq61/laracasts_theme_updated.icls
(Add to ~/Library/Preferences/WebIde80/colors
on Mac.)
#!/usr/bin/php -qC | |
<?php | |
/****************************************************************************** | |
* | |
* @file gitolab.php | |
* @author Benoit Zohar | |
* @link http://benoitzohar.fr/ | |
* @last-edited 2015-01-09 | |
* @description Migrate projects from Gitolite to GitLab |
Ionic and ngCordova upload example |
#!/usr/bin/env bash | |
# Configurable variables | |
database='vagrant' | |
username='vagrant' | |
password='vagrant' | |
echo '' | |
echo ' ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~' | |
echo ' Bootstrapping Ubuntu Precise 32bit for Laravel 4' |
#!/usr/bin/env bash | |
# Met à jour la box | |
apt-get update | |
# Install Vim | |
apt-get install -y vim | |
# Install Apache | |
apt-get install -y apache2 |
var win = Ti.UI.createWindow(); | |
var images = []; | |
for(var i = 1; i < 100; i++){ | |
// Assuming all the images are called image1.jpg, image2.jpeg, etc... | |
images.push('/images/image'+i+'.jpg'); | |
} | |
var gallery = Gallery(images,0); |
Here is a simple jQuery plugin to make a table header fixed on top when window is scrolled. | |
Using the code from twitter bootstrap documentation page, this code is customized for table header. | |
Create the table with following layout - | |
<table class="table-fixed-header"> | |
<thead class="header"> | |
<tr> | |
<th>Column 1</th> | |
<th>Column 2</th> | |
<th>Column 3</th> |
#! /usr/bin/python | |
from sys import argv | |
from os.path import exists | |
from os import makedirs | |
from os import symlink | |
from os import system | |
import getopt | |
# |
#!/bin/bash | |
THE_DATE="$(date '+%Y-%m-%d')" | |
BACKUP_DIR="/Users/`whoami`/Desktop/db-backups/" | |
MYSQL_HOST="localhost" | |
MYSQL_USER="root" | |
MYSQL_PASS="" | |
MYSQL_BACKUP_DIR="$BACKUP_DIR" | |
MYSQL_PATH="$(which mysql)" |