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
basic.pause(1000) | |
music.setTempo(150) | |
basic.forever(function () { | |
if (input.buttonIsPressed(Button.A)) { | |
music.playTone(370, music.beat(BeatFraction.Half)) | |
music.playTone(466, music.beat(BeatFraction.Half)) | |
music.playTone(554, music.beat(BeatFraction.Half)) | |
music.playTone(466, music.beat(BeatFraction.Half)) | |
music.playTone(370, music.beat(BeatFraction.Half)) | |
music.rest(music.beat(BeatFraction.Half)) |
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
/* ----- default ----- */ | |
// src: export default someFunc | |
// dist: module.exports = someFunc | |
const defaultCjs = { | |
input: 'src/default.js', | |
output: { | |
file: 'dist/default.cjs', | |
format: 'cjs' | |
}, |
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 <unistd.h> | |
#include <sys/socket.h> | |
#include <bluetooth/bluetooth.h> | |
#include <bluetooth/rfcomm.h> | |
int main(int argc, char **argv) | |
{ | |
struct sockaddr_rc loc_addr = { 0 }, rem_addr = { 0 }; | |
char buf[1024] = { 0 }; |
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 <zlib.h> | |
#define BUF_SIZE 1024 | |
int main(int argc, char **argv) | |
{ | |
int ret = Z_OK; | |
z_stream strm; |
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 <sys/stat.h> | |
#include <dirent.h> | |
#define DIR_NAME "dir" | |
int main(void) | |
{ |