Skip to content

Instantly share code, notes, and snippets.

package curses
/*
#include <stdlib.h>
#define NCURSES_ENABLE_STDBOOL_H 0
#include <curses.h>
*/
import "C"
import "unsafe"
var loadingImage=[[CPImage alloc] initWithContentsOfFile:[[CPBundle mainBundle] pathForResource:"spinner.gif"]];
var fileImage=[[CPImage alloc] initWithContentsOfFile:[[CPBundle mainBundle] pathForResource:"file.png"]];
var folderImage=[[CPImage alloc] initWithContentsOfFile:[[CPBundle mainBundle] pathForResource:"folder.png"]];
var textHighlightImage=[[CPImage alloc] initWithContentsOfFile:[[CPBundle mainBundle] pathForResource:"TextHighlight.png"]];
var iconSelectionImage=[[CPImage alloc] initWithContentsOfFile:[[CPBundle mainBundle] pathForResource:"IconSelectionOutline.png"]];
var textHighlightColor=[CPColor colorWithPatternImage:textHighlightImage];
RaptorFileDragType="RaptorFileDragType";
var CappRFCBN1=function(url,err){
if(url==true){
if(AuthWV)
[CPApp stopModal];
[[CPNotificationCenter defaultCenter] postNotificationName:"URLLoaded" object:nil];
AuthWV=nil;
}else{
var win=[[CPWindow alloc] initWithContentRect:CPMakeRect(0,0,400,300) styleMask:CPTitledWindowMask];
[win setTitle:"Web"];
var wv=[[CPWebView alloc] initWithFrame:CPMakeRect(0,0,400,300)];
[INFO] Scanning for projects...
[INFO] ------------------------------------------------------------------------
[ERROR] FATAL ERROR
[INFO] ------------------------------------------------------------------------
[INFO] Failed to resolve artifact.
GroupId: org.antlr
ArtifactId: antlr-master
Version: 3.2.1-SNAPSHOT
[INFO] Scanning for projects...
[INFO] ------------------------------------------------------------------------
[INFO] Building ANTLR Master build control POM
[INFO] task-segment: [install]
[INFO] ------------------------------------------------------------------------
[INFO] [buildnumber:create {execution: default}]
[INFO] Storing buildNumber: Oct 02, 2010 14:16:15 at timestamp: 1286043375018
[INFO] Executing: /bin/sh -c cd /Users/marc/Documents/Projects/JSJava/antlr && svn --non-interactive info
[INFO] Working directory: /Users/marc/Documents/Projects/JSJava/antlr
[INFO] Storing buildScmBranch: UNKNOWN_BRANCH
In file included from ../src/algorithm.cpp:10:
In file included from ../include/algorithm:589:
../include/__config:95:9: error: unknown type name '__char16_t'
typedef __char16_t char16_t;
^
../include/__config:96:9: error: unknown type name '__char32_t'
typedef __char32_t char32_t;
^
In file included from ../src/algorithm.cpp:10:
In file included from ../include/algorithm:591:
In file included from ../src/algorithm.cpp:10:
In file included from ../include/algorithm:589:
../include/__config:95:9: error: unknown type name '__char16_t'
typedef __char16_t char16_t;
^
../include/__config:96:9: error: unknown type name '__char32_t'
typedef __char32_t char32_t;
^
In file included from ../src/algorithm.cpp:10:
In file included from ../include/algorithm:591:
//NumberParser.h
@interface NumberParser : NSObject
{
char *str;
}
-(void)addDigit:(char)ch;
-(double)doubleValue;
@end
@maz
maz / temperature.c
Created August 21, 2012 02:13
Temperature Digits Arduino
void loop(){
int digit_0;//tenths
int digit_1;//ones
int digit_2;//tens
int digit_3;//hundreds
//assuming you've got the same getTemp() setup as in the bildr tutorial
float temp=getTemp();
temp*=1.8;
temp+=32;
# ./configure --disable-doc --disable-ffplay --disable-ffprobe --disable-ffserver --disable-pthreads --disable-w32threads --disable-os2threads --disable-network --enable-libfaac --enable-libmp3lame --enable-libx264 --prefix=/Users/maz/Documents/Projects/JavaScriptVideo/ffmpeg-1.0/../prefix --disable-runtime-cpudetect --enable-gpl --enable-nonfree
ALL_COMPONENTS='
aac_adtstoasc_bsf
chomp_bsf
dump_extradata_bsf
h264_mp4toannexb_bsf
imx_dump_header_bsf
mjpeg2jpeg_bsf
mjpega_dump_header_bsf
mp3_header_compress_bsf