Skip to content

Instantly share code, notes, and snippets.

View macLai's full-sized avatar

macLai macLai

  • Denso
  • nagoya.Japan
View GitHub Profile
$.post("http://oa-center.storm/Programs/KQ/EmployeeRequestOvertime.aspx", {__VIEWSTATE:$("#__VIEWSTATE").value, __VIEWSTATEGENERATOR:$("#__VIEWSTATEGENERATOR").value, __EVENTVALIDATION:$("#__EVENTVALIDATION").value, btnPrev:$("#btnPrev").value}, function (text, status) { console.log(text); });
NSString *path = nil;
NSArray *paths = NSSearchPathForDirectoriesInDomains(NSCachesDirectory, NSUserDomainMask, YES);
if ([paths count])
{
NSString *bundleName =
[[[NSBundle mainBundle] infoDictionary] objectForKey:@"CFBundleIdentifier"];
path = [[paths objectAtIndex:0] stringByAppendingPathComponent:bundleName];
}
@macLai
macLai / sample.c
Created January 29, 2018 04:39
SIGINT signal sample
#include <stdlib.h>
#include <stdio.h>
#include <signal.h>
typedef enum
{
false = 0,
true = 1
}bool;
@macLai
macLai / 0_reuse_code.js
Created March 16, 2016 08:05
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