A Dashing widget to display a random Xebia Essentials card. Refreshes every 15 minutes.
The following dependencies are required. Please add them to your dashing gemfile.
require 'net/http'
require 'json'
A Dashing widget to display a random Xebia Essentials card. Refreshes every 15 minutes.
The following dependencies are required. Please add them to your dashing gemfile.
require 'net/http'
require 'json'
| JNIEXPORT jstring JNICALL Java_ca_weblite_mactools_Sandbox_saveDialog | |
| (JNIEnv *env, jobject jthis, jstring title, jstring extension){ | |
| JNF_COCOA_ENTER(env); | |
| jstring path; | |
| //@autoreleasepool { | |
| NSString *cocoaExtension = JNFJavaToNSString(env, extension); | |
| NSSavePanel *panel = [NSSavePanel savePanel]; | |
| NSArray *types = [NSArray arrayWithObjects: cocoaExtension,nil]; |
| const char* cstr = [string UTF8String]; | |
| void* anon = mmap(0, sizeof(char) * (string.length + 1), PROT_WRITE|PROT_READ, MAP_ANON|MAP_PRIVATE, 0, 0); | |
| if (anon == MAP_FAILED) { | |
| NSLog(@"Failed to map memory."); | |
| return; | |
| } | |
| strcpy(anon, cstr); | |
| // How do I get a file descriptor for use here? |