Skip to content

Instantly share code, notes, and snippets.

View minyoad's full-sized avatar

minyoad minyoad

View GitHub Profile
minyoad / 0_reuse_code.js
Created November 2, 2015 01:53
Here are some things you can do with Gists in GistBox.
View 0_reuse_code.js
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console
minyoad / gist:6d50918a507e2a6bce3cb0c2943d5ab0
Created April 10, 2017 03:07 — forked from loretoparisi/gist:4247490
Objective-C Unicode Escaping + JSON
View gist:6d50918a507e2a6bce3cb0c2943d5ab0
* LP: Escape Unicode for json string object
-(NSString*)escapeUnicodeWithString:(NSString*)stringToEscape {
NSError *error;
NSString *escapedString;
escapedString = [stringToEscape JSONStringWithOptions:JKSerializeOptionEscapeUnicode includeQuotes:YES error:&error];
if(error) {
View Launcher 1.3.6 LSApplicationQueriesSchemes
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "">
<plist version="1.0">
View UITableViewDataSorceAndDelegate.m
#pragma mark - Table View Data Source
- (NSInteger)tableView:(UITableView *)tableView
return 0;
- (UITableViewCell *)tableView:(UITableView *)tableView
cellForRowAtIndexPath:(NSIndexPath *)indexPath
minyoad / pre-commit
Last active August 24, 2020 08:32
git hooks pre-commit to automatic update *.js *.css version
View pre-commit
## change js and css file version by append ?v111111
## usage: copy to .git/hooks/pre-commit
## chmod a+x .git/hooks/pre-commit
modified_files=$(git diff --cached --name-only)