This file contains 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
implode(', ', array_map( | |
function ($k, $v) { return "{$k}: {$v}"; }, | |
array_keys($array), | |
array_values($array) | |
)); |
This file contains 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
#!/bin/bash | |
# shell script to create git repositories | |
if [ $# -ne 1 ] ; then | |
echo "usage: create-git REPONAME" | |
echo "=> example: create-git myrepo" | |
exit | |
fi | |
cd ~/git |
This file contains 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
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1"> |
This file contains 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
# add to ~/.bashrc | |
export PS1='\[\033[0;35m\]\h\[\033[0;33m\] \w\[\033[00m\]: ' |
This file contains 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
git config --global alias.lg "log --color --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset' --abbrev-commit --" | |
# usage: git lg |
This file contains 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'); | |
var plugins = require('gulp-load-plugins')(); | |
var rimraf = require('rimraf'); | |
var paths = { | |
less: ['./less/*.less'], | |
js: ['./js/app/*.js', './js/app/**/*.js'], | |
jsView: ['./js/app/views/*.html'], | |
dist: { | |
css: './public/css/', |
This file contains 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": "general-gulp-file", | |
"version": "0.1.0", | |
"devDependencies": { | |
"gulp": "*", | |
"gulp-load-plugins": "*", | |
"multipipe": "*", | |
"gulp-less": "*", | |
"gulp-concat": "*", | |
"gulp-uglify": "*", |
This file contains 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
/* TINY DEVICES (tn) */ | |
@media (max-width: 479px) { | |
} | |
/* EXTRA SMALL DEVICES (phones) */ | |
@media (max-width: 767px) { | |
} |
This file contains 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
/* declaration */ | |
@size-tn: ~"(max-width: 479px)"; | |
@size-xs: ~"(min-width: 480px) and (max-width: 767px)"; | |
@size-sm: ~"(min-width: 768px) and (max-width: 991px)"; | |
@size-md: ~"(min-width: 992px) and (max-width: 1199px)"; | |
@size-lg: ~"(min-width: 1200px)"; | |
/* example usage */ | |
footer { | |
@media @size-xs { |
This file contains 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
touch /var/cache/mod_pagespeed/cache.flush |
OlderNewer