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
/** | |
ArduinoProMini_FelicaPlug_Type3_RW.ino | |
Felica PlugのArduino向けライブラリに付属されているサンプルを基に改変 | |
(ライブラリ: http://blog.felicalauncher.com/sdk_for_air/?page_id=2419) | |
**/ | |
#define CONFIG_FELICA_PLUG_EEPROM | |
#include <EEPROM.h> | |
#include <FeliCaPlug.h> | |
#include <inttypes.h> |
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
-- FlashAir Lua objects dumper | |
-- For FlashAir 3rd generation or newer | |
-- 1. Put this file to the root directory of the card | |
-- 2. Connect to card. Then access to http://flashair/dumper.lua | |
print("HTTP/1.0 200 OK\r\n\r\n") | |
for i,v in pairs(_G) do | |
print(i) | |
print(v) | |
local t = type(v) |
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
box: node | |
build: | |
steps: | |
- npm-install | |
- npm-test | |
- script: | |
name: echo nodejs information | |
code: | | |
echo "node version $(node -v) running" | |
echo "npm version $(npm -v) running" |
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
<!DOCTYPE html> | |
<html> | |
<head> | |
<title>BGColors Sample</title> | |
<script type="text/javascript" src="bg-colors.js"></script> | |
<script type="text/javascript"> | |
function sampleDraw(){ | |
new BGColors(['red','green','blue','yellow'], document.getElementById('sample')); | |
} | |
</script> |
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
# Docker container for whole process | |
box: ubuntu | |
# Additional services | |
services: | |
- id: mysql | |
env: | |
MYSQL_ROOT_PASSWORD: test | |
MYSQL_USER: test | |
MYSQL_PASSWORD: test |
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
#!/bin/bash | |
# FTP directory clone script for Unix OS | |
# Required: bash & wget command | |
# https://gist.github.com/mugifly/931624e375d40267afc4 | |
# Copy source (Remote FTP server) | |
SRC_HOST="example.com" | |
SRC_USERNAME="xxxx" | |
SRC_PASSWORD="yyyy" | |
SRC_DIRECTORY="/home/xxxx/src" |
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
#!/usr/bin/env perl | |
use Mojolicious::Lite; | |
push @{app->static->paths}, 'site/'; # File path | |
app->start('daemon'); | |
# Execute this script on terminal: perl daemon.pl | |
# Then, let's access to http://localhost:3000/*** |
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
#!/usr/bin/env perl | |
# GitHub Webhook receiver & updater cgi (for Hosting-web-server) | |
# https://gist.github.com/mugifly/5087897/ | |
use strict; | |
use warnings; | |
use utf8; | |
use lib 'lib'; # for local lib directory | |
use CGI; |
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
#!/usr/bin/env perl | |
# Bayon Simple WebAPI (with Mojolicious::Lite) | |
# https://gist.github.com/mugifly/5222608 | |
use Mojolicious::Lite; | |
use utf8; | |
use Mojo::JSON; | |
use Mojo::ByteStream; | |
use Mojo::Asset::File; | |
use Text::Bayon; | |
use Encode; |
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 <SoftwareSerial.h> | |
#define LED_PORT 13 | |
#define BT_RX 11 | |
#define BT_TX 10 | |
// TX(RBT-001) <-> 11(Arduino) | |
#define PWM_WIDTH 500 | |
// roop = 2ms |
OlderNewer