This file contains 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
void setup() { | |
size(480, 480); | |
init(); | |
frameRate(12); | |
unit = width / SIZE; | |
} | |
final int SIZE = 96; | |
int map[][] = new int[SIZE * SIZE][2]; | |
int current; |
This file contains 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
void setup() { | |
size(800, 800); | |
colorMode(RGB, 1.0); | |
init(); | |
} | |
static final int SIZE = 100; | |
float map[][] = new float[SIZE * SIZE][2]; | |
int current; |
This file contains 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
void setup() { | |
size(640, 480); | |
frameRate(8); | |
background(0); | |
init(); | |
} | |
class Body { | |
public int x; | |
public int y; |
This file contains 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
var fs = require('fs'); | |
fs.readdir('.', function(err, files) { | |
if (err) throw err; | |
var fileList = []; | |
var index = 0; | |
files.filter(function(file) { | |
return fs.statSync(file).isFile() && /.*snapshot\.jpg$/.test(file); | |
}).forEach(function(file) { |
This file contains 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 <M5Stack.h> | |
#define PIECE_BLANK 0 | |
#define PIECE_WHITE 1 | |
#define PIECE_BLACK 2 | |
#define BOARD_SIZE 64 | |
#define BOARD_WIDTH 8 | |
#define SQUARE_WIDTH 28 |
This file contains 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 <M5Stack.h> | |
#define WIDTH 320 | |
#define HEIGHT 240 | |
#define BLOCK_SIZE 16 | |
#define UNIT_WIDTH ((WIDTH) / (BLOCK_SIZE)) | |
#define UNIT_HEIGHT ((HEIGHT) / (BLOCK_SIZE)) | |
#define UNIT_SIZE ((UNIT_WIDTH) * (UNIT_HEIGHT)) | |
#define GETX(i) ((i) % (UNIT_WIDTH)) | |
#define GETY(i) ((i) / (UNIT_WIDTH)) |
We can make this file beautiful and searchable if this error is corrected: Any value after quoted field isn't allowed in line 2.
This file contains 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
01_electronics | |
@morecat_lab + @tadfmac , "OSC on air(Open Sound Control)" , http://makezine.jp/event/makers2018/m0399/ , 12-08 | |
Aiphony , "FLO" , http://makezine.jp/event/makers2018/m0368/ , 18-01 | |
ajimitei labo. , "パーティーハット" , http://makezine.jp/event/makers2018/m0342/ , 15-11 | |
AKI from Binary Macaron , "ニキシー管時計、自作キーボード等の【日々の作品群】" , http://makezine.jp/event/makers2018/m0360/ , 12-11 | |
Atelier Beta , "柿ピー分離器/サッカーボードゲームリプレイシステム" , http://makezine.jp/event/makers2018/m0406/ , 15-09 | |
ATMM , "電拳 ~DENKEN~" , http://makezine.jp/event/makers2018/m0318/ , 03-03 | |
Botch Watch , "デジタル砂時計" , http://makezine.jp/event/makers2018/m0214/ , 12-10 | |
D. Geek Lab. , "「DRAWAVE」「Monroe-skirt SHOES」他" , http://makezine.jp/event/makers2018/m0407/ , 01-04 | |
denha's channel , "「音・光・動き」のガジェッツ、大集合!" , http://makezine.jp/event/makers2018/m0022/ , 02-02 |
This file contains 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
int size; | |
void setup() { | |
size(800, 600); | |
size = width / 16; | |
noLoop(); | |
} |
This file contains 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
comments = document.getElementsByClassName('comment'); | |
d = 0; | |
for (i = 0; i < comments.length; i++) { | |
const imgs = comments[i].getElementsByTagName('img'); | |
if (imgs.length == 0) { | |
comments[i].hidden = true; | |
d++; | |
} | |
} |
OlderNewer