git config --global alias.ignore 'update-index --skip-worktree'
git config --global alias.unignore 'update-index --no-skip-worktree'
git config --global alias.ignored '!git ls-files -v | grep "^S"'
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 | |
| use Guzzle\Http\Client; | |
| require __DIR__ . '/vendor/autoload.php'; | |
| $tmpFile = tempnam(sys_get_temp_dir(), 'guzzle-download'); | |
| $handle = fopen($tmpFile, 'w'); | |
| $client = new Client('', array( | |
| Client::CURL_OPTIONS => array( |
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
| #import "NSData+OADataHelpers.h" | |
| @implementation NSData (OADataHelpers) | |
| - (NSString*) UTF8String | |
| { | |
| return [[[NSString alloc] initWithData:[self dataByHealingUTF8Stream] encoding:NSUTF8StringEncoding] autorelease]; | |
| } | |
| // Replaces all broken sequences by � character and returns NSData with valid UTF-8 bytes. |
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
| // | |
| // UIColor+HexString.h | |
| // Class to convert hex string to UIColor | |
| // Support #RGB # ARGB #RRGGBB #AARRGGBB | |
| // Usage: [UIColor colorWithHexString:@"#f5e6a1"]; | |
| // Created by Zhu Yuzhou on 1/20/13. | |
| // | |
| #import <UIKit/UIKit.h> |
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
| set nocompatible | |
| filetype on | |
| filetype indent on | |
| filetype plugin on | |
| let mapleader = "." | |
| syntax enable | |
| set foldmethod=syntax | |
| set ignorecase | |
| set hlsearch |
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 FILE | |
| ============================================== | |
| add_action( 'wp_ajax_sample_action', 'my_action_callback' ); | |
| add_action( 'wp_ajax_nopriv_sample_action', 'my_action_callback' ); | |
| function my_action_callback(){ | |
| $_POST['his_not_email']; |
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
| <select name="currency_code"> | |
| <option value="">Select Currency</option> | |
| <option value="AUD">Australian Dollar</option> | |
| <option value="BRL">Brazilian Real </option> | |
| <option value="CAD">Canadian Dollar</option> | |
| <option value="CZK">Czech Koruna</option> | |
| <option value="DKK">Danish Krone</option> | |
| <option value="EUR">Euro</option> | |
| <option value="HKD">Hong Kong Dollar</option> | |
| <option value="HUF">Hungarian Forint </option> |
Getting started:
Related tutorial: http://cd64.de/mysql-cli
SQL joins infografic: http://cd64.de/sql-joins
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
| <!-- resources/views/auth/login.blade.php --> | |
| <form method="POST" action="/auth/login"> | |
| {!! csrf_field() !!} | |
| <div> | |
| <input type="email" name="email" value="{{ old('email') }}"> | |
| </div> |
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
| git fetch --all | |
| git reset --hard origin/master |
NewerOlder