Skip to content

Instantly share code, notes, and snippets.

#include <stdio.h>
typedef unsigned char BYTE;
union blablabla {
BYTE k[8];
double b;
};
void print_8_bit(unsigned char n) {
int numbers[10][8] =
{
{
01110,
10001,
10001,
10001,
10001,
10001,
10001,
var yes = $('.btn-yes');
var no = $('.btn-no');
var tin = $('.in');
setInterval(function(){
var tt = tin.html();
if( (typeof tt != 'undefined') && tt.length % 2 == 1){
no.click();
} else if(typeof tt != 'undefined'){
yes.click();
}
//#include "pitches.h" //將發聲頻率資料庫匯入
#define NOTE_B0 31
#define NOTE_C1 33
#define NOTE_CS1 35
#define NOTE_D1 37
#define NOTE_DS1 39
#define NOTE_E1 41
#define NOTE_F1 44
#define NOTE_FS1 46
#define NOTE_G1 49
#include <stdio.h>
typedef unsigned char BYTE;
int convert_to_bit(BYTE byte) {
int c;
int p = 1;
int res = 0;
for(c=0; c<8; c++) {
res += byte%2 * p;
#include <stdio.h>
int gcd(int a, int b) {
if(b == 0) {
return a;
} else {
return gcd(b, a%b);
}
}
/* ZigBee_Exp03
習作練習三:兩台電腦與Arduino板子間的資料互傳
運行在Arduino1上的通訊軟體
*/
#include <SoftwareSerial.h>
#define rxPin 2
#define txPin 3
char DH[] = "ATDH13A200";
char DL_ZED1[] = "ATDL4031F408"; //for Which2Talk = 1
import java.util.Scanner;
public class Main {
public static void main(String[] args) {
Scanner scanner = new Scanner(System.in);
int n = scanner.nextInt();
while(n != 0) {
int[] C = new int[n+1];
// 定義 MapAPp
var MapApp = angular.module('MapApp', []);
// 替換 {{}} 符號
MapApp.config(function($interpolateProvider) {
$interpolateProvider.startSymbol('[[');
$interpolateProvider.endSymbol(']]');
});
<div class="two fields" ng-app='MapApp' ng-controller='MapController'>
<div class='field'>
<label>地圖</label>
<div id="map-canvas"></div>
</div>
<div class='field'>
<label>座標及時間(雙擊新增)</label>
<table class="ui table segment">
<thead>
<tr><th>名稱</th>