This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package com.alansparrow.chat; | |
import gnu.io.CommPortIdentifier; | |
import gnu.io.PortInUseException; | |
import gnu.io.SerialPort; | |
import gnu.io.SerialPortEvent; | |
import gnu.io.SerialPortEventListener; | |
import gnu.io.UnsupportedCommOperationException; | |
import java.io.IOException; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
if ([SLComposeViewController isAvailableForServiceType:SLServiceTypeFacebook]) | |
{ | |
SLComposeViewController *facebookSheet = [SLComposeViewController composeViewControllerForServiceType:SLServiceTypeFacebook]; | |
[facebookSheet setInitialText:@"Facebooking from my own app: http://www.google.com! :)"]; | |
NSString *gameURL = @"http://www.google.com"; | |
[facebookSheet addURL:[NSURL URLWithString:gameURL]]; | |
[[CCDirector sharedDirector] presentViewController:facebookSheet animated:NO completion:nil]; | |
NSLog(@"Twitter1"); | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
if ([SLComposeViewController isAvailableForServiceType:SLServiceTypeTwitter]) | |
{ | |
SLComposeViewController *tweetSheet = [SLComposeViewController composeViewControllerForServiceType:SLServiceTypeTwitter]; | |
[tweetSheet setInitialText:@"Tweeting from my own app: http://www.google.com! :)"]; | |
NSString *gameURL = @"http://www.google.com"; | |
[tweetSheet addURL:[NSURL URLWithString:gameURL]]; | |
[[CCDirector sharedDirector] presentViewController:tweetSheet animated:NO completion:nil]; | |
NSLog(@"Twitter1"); | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Want a game to help you sleep? This is your game! You will save these beautiful eggs by make the jump ^.^ Don't let the fox eat them! | |
"Long long time ago, on the planet named B-181, there is a fox prince. The planet is so small that it will blow off if there are many eggs. For the fox prince so loved his little world that he keep eating all the eggs, that whoever jump will not be eaten..." |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
rm /etc/config/wireless | |
wifi detect > /etc/config/wireless |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <stdio.h> | |
#include <string.h> | |
#include <stdlib.h> | |
#include <unistd.h> | |
#include <sys/types.h> | |
#include <sys/stat.h> | |
#include <sys/socket.h> | |
#include <arpa/inet.h> | |
#include <netdb.h> | |
#include <signal.h> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <stdio.h> | |
#include <stdlib.h> | |
#include <string.h> | |
#include <stdint.h> | |
typedef enum { FALSE, TRUE } boolean; | |
#define MAX_KEY 3 //511 | |
#define B_TREE_T 2 //256 | |
typedef struct Key |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Install kmod-ath9k and: | |
rm /etc/config/wireless | |
wifi detect > /etc/config/wireless |