Skip to content

Instantly share code, notes, and snippets.

View oa414's full-sized avatar
🤓
苟利国家生死以,岂因祸福避趋之

Lin Xiangyu oa414

🤓
苟利国家生死以,岂因祸福避趋之
View GitHub Profile
Notification n = new Notification();
n.flags |= Notification.FLAG_SHOW_LIGHTS;
n.ledARGB = Color.YELLOW;
n.ledOnMS = 300;
n.ledOffMS = 300;
NotificationManager nm = (NotificationManager)getSystemService(NOTIFICATION_SERVICE);
nm.notify(1,n);
#include <stdio.h>
int main(void)
{
char ch;
int repeat, ri;
scanf("%d", &repeat);
for(ri = 1; ri <= repeat; ri++){
ch = getchar();
switch (ch) {
//
// ViewController.m
// tt
//
// Created by linxiangyu on 13-3-24.
// Copyright (c) 2013年 linxiangyu. All rights reserved.
//
#import "ViewController.h"
#define FILE_NAME @"hello"
import java.io.IOException;
import java.net.Socket;
import java.net.UnknownHostException;
/**
* Created with IntelliJ IDEA.
* User: linxiangyu
* Date: 13-3-6
* Time: 涓��7:13
* To change this template use File | Settings | File Templates.
@oa414
oa414 / Test.java
Created March 28, 2013 06:26
A Simple Java HTTP Server
import java.io.BufferedInputStream;
import java.io.BufferedOutputStream;
import java.io.ByteArrayOutputStream;
import java.io.FileInputStream;
import java.io.IOException;
import java.io.InputStream;
import java.io.OutputStream;
import java.io.UnsupportedEncodingException;
import java.net.ServerSocket;
import java.net.Socket;
package com.mmclub.NjuptNews.Activity;
import com.mmclub.NjuptNews.R;
import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
package info.linxiangyu.ShakeHappy.data;
import android.content.Context;
import android.database.sqlite.SQLiteDatabase;
import android.database.sqlite.SQLiteOpenHelper;
import android.util.Log;
/**
* Created with IntelliJ IDEA.
* User: linxiangyu