Skip to content

Instantly share code, notes, and snippets.

View minyoad's full-sized avatar

minyoad minyoad

View GitHub Profile
@minyoad
minyoad / pre-commit
Last active August 24, 2020 08:32
git hooks pre-commit to automatic update *.js *.css version
#!/bin/bash
###
## 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)
#pragma mark - Table View Data Source
- (NSInteger)tableView:(UITableView *)tableView
numberOfRowsInSection:(NSInteger)section
{
return 0;
}
- (UITableViewCell *)tableView:(UITableView *)tableView
cellForRowAtIndexPath:(NSIndexPath *)indexPath
{
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<array>
<string>fb254145378030027</string>
<string>isupr8</string>
<string>fb176151905794941</string>
<string>recipeSearch-iPad</string>
<string>airfile</string>
<string>univision</string>
@minyoad
minyoad / gist:6d50918a507e2a6bce3cb0c2943d5ab0
Created April 10, 2017 03:07 — forked from loretoparisi/gist:4247490
Objective-C Unicode Escaping + JSON
/**
* 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) {
@minyoad
minyoad / 0_reuse_code.js
Created November 2, 2015 01:53
Here are some things you can do with Gists in GistBox.
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console