curl -sL https://gist.github.com/denji/9731967/raw/jetbrains-uninstall.sh | bash -s
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
require 'mina/git' | |
# Fix the SSH password prompt problem | |
set :term_mode, nil | |
# Basic settings: | |
# domain - The hostname to SSH to. | |
# deploy_to - Path to deploy into. | |
# repository - Git repo to clone from. (needed by mina/git) | |
# branch - Branch name to deploy. (needed by mina/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
var lang = { | |
required => "{{ trans('required') }}", | |
email => "{{ trans('email') }}", | |
}; |
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": "cakephp-application", | |
"repositories": [ | |
{ | |
"type": "pear", | |
"url": "http://pear.cakephp.org" | |
} | |
], | |
"require": { | |
"pear-cakephp/cakephp": ">=2.4.0" |
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
<?php | |
/** | |
* Description of VideoStream | |
* | |
* @author Rana | |
* @link http://codesamplez.com/programming/php-html5-video-streaming-tutorial | |
*/ | |
class VideoStream | |
{ | |
private $path = ""; |
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
#!/usr/bin/env sh | |
sh $HOME/.oh-my-zsh/tools/upgrade.sh | |
pip3 install --upgrade pip | |
pip3 freeze --local | grep -v '^\-e' | cut -d = -f 1 | xargs -n1 pip3 install -U | |
pip2 install --upgrade pip | |
pip2 freeze --local | grep -v '^\-e' | cut -d = -f 1 | xargs -n1 pip2 install -U |
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
laravel-new() { | |
if [ -z "$1" ]; then | |
cat << EOF | |
Please provide a directory name. | |
Usage: | |
laravel-new [directory-name] | |
EOF | |
return; |
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
import requests | |
import bs4 | |
from termcolor import colored | |
root_url = 'https://www.origin.com/en-gb/store/free-games/on-the-house' | |
def getFreeGames(): | |
try: | |
response = requests.get(root_url) | |
soup = bs4.BeautifulSoup(response.text) |
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
Show hidden characters
[ | |
{ "keys": ["super+shift+v"], "command": "paste" }, | |
{ "keys": ["super+v"], "command": "paste_and_indent" }, | |
{"keys": ["super+\\"], "command": "toggle_side_bar"}, | |
{"keys": ["shift+super+n"], "command": "advanced_new_file_new"}, | |
{"keys": ["shift+5"], "command": "move_to", "args": {"to": "brackets"} }, | |
{"keys": ["ctrl+\\"], "command": "toggle_side_bar"}, | |
{"keys": ["super+shift+space"], "command": "expand_region"}, | |
{"keys": ["option+up"], "command": "expand_region"}, | |
{"keys": ["option+down"], "command": "expand_region", "args": {"undo": true }, "context": [{"key": "expand_region_soft_undo"}] }, |