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
alias gi="git init" | |
alias gs="git status" | |
alias gst="git stash" | |
alias gsa="git stash apply" | |
alias ga="git add ." | |
alias gc="git commit -m" | |
alias gce="git commit -am '______'" | |
alias gch="git checkout" | |
alias gp="git push origin" | |
alias gpom="git push origin 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
https://maps.googleapis.com/maps/api/staticmap?center=" + latitude + "," + longitude + "&zoom=13&size=300x300&sensor=false |
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
# If you come from bash you might have to change your $PATH. | |
export PATH=$HOME/bin:/usr/local/bin:/Users/polodev/.composer/vendor/bin:/usr/sbin:$PATH | |
# Path to your oh-my-zsh installation. | |
export ZSH=/Users/polodev/.oh-my-zsh | |
# Set name of the theme to load. Optionally, if you set this to "random" | |
# it'll load a random theme each time that oh-my-zsh is loaded. | |
# See https://github.com/robbyrussell/oh-my-zsh/wiki/Themes | |
ZSH_THEME="agnoster" |
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
#in index.ios.js or index.android.js | |
global.LOG = (...args) => { | |
if (process.env.NODE_ENV === 'development') { | |
console.log('/------------------------------\\') | |
console.log('LOGGER', ...args) | |
console.log('\\------------------------------/') | |
} | |
return args[args.length - 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
{ | |
"vim.easymotion": true, | |
"vim.incsearch": true, | |
"vim.useCtrlKeys": false, | |
"vim.leader": ",", | |
"vim.hlsearch": true, | |
"editor.fontFamily": "'Fira Code', 'Fira Mono', Monaco, Menlo, monospace", | |
"editor.lineHeight": 20, | |
"editor.fontSize": 18, | |
"editor.formatOnPaste": 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
[ | |
//for changing vim mode in origin Vintage | |
{ "keys": ["j", "j"], "command": "exit_insert_mode", | |
"context": | |
[ | |
{ "key": "setting.command_mode", "operand": false }, | |
{ "key": "setting.is_widget", "operand": false } | |
] | |
}, | |
//for changing to normal mode in vintageous |
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 | |
$dirs = array_filter(glob('*'), 'is_dir'); | |
?> | |
<!DOCTYPE html> | |
<html lang="en"> | |
<head> | |
<meta charset="UTF-8"> | |
<title>all links</title> | |
<style> | |
body { |
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 | |
require 'AltoRouter.php'; | |
$router = new AltoRouter(); | |
$router->map('GET','/', 'home_controller#index', 'home'); | |
$router->map('GET','/dashboard/hello/world/from/dhaka', 'home_controller#hello', 'hello'); | |
$router->map('GET','/content/[:parent]/?[:child]?', 'content_controller#display_item', 'content'); | |
$match = $router->match(); | |
// not sure if code after this comment is the best way to handle matched routes | |
list( $controller, $action ) = explode( '#', $match['target'] ); |
OlderNewer