Skip to content

Instantly share code, notes, and snippets.

# version
# BetaFlight/NAZE 2.4.0 Feb 8 2016 / 14:57:25 (3fc1440)
# dump master
# mixer
mixer QUADX
mmix reset
smix reset
@a2chub
a2chub / file0.txt
Created October 5, 2015 04:48
CoderにWebiopi インストールバッチ ref: http://qiita.com/atusi/items/86ae3ec335dff2243342
wget http://sourceforge.net/projects/webiopi/files/WebIOPi-0.7.1.tar.gz/download
tar xvzf download
cd WebIOPi-0.7.1/python/native
mv cpuinfo.c cpuinfo.c.original
mv gpio.c gpio.c.original
wget http://denshikousaku.net/wp-content/uploads/2015/02/cpuinfo.c
wget http://denshikousaku.net/wp-content/uploads/2015/02/gpio.c
#!/usr/bin/env python
#coding:utf-8
from random import randint
import sys
team = 'ABCDEFG'
used = ""
<!--
@license
Copyright (c) 2015 The Polymer Project Authors. All rights reserved.
This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
Code distributed by Google as part of the polymer project is also
subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
-->
#!/usr/bin/env python
#coding:utf-8
import random
cnt = 0
tate = 33
yoko = 5
base_list = range(1, tate*yoko+1)
#!/usr/bin/env python
#coding:utf-8
def basic():
for i in range(100):
if i%2 ==0:
print i
def oneLine(counts):
#!/usr/bin/env python
#coding:utf-8
org_arr = [[1, 2, 3], [4, 5, 6], [7, 8, 9]]
seikai = """1,2,3
4,5,6
7,8,9
"""
#!/usr/bin/env python
#coding:utf-8
org_arr = [[1, 2, 3], [4, 5, 6], [7, 8, 9]]
seikai = """1,2,3
4,5,6
7,8,9
"""
#!/usr/bin/env python
#coding:utf-8
key_list = range(10)
val_list = range(10)
val_list.reverse()
print "正解: {0:9, 1:8 ...}"
@a2chub
a2chub / designer.html
Created July 14, 2014 11:06
designer
<link rel="import" href="../components/polymer/polymer.html">
<polymer-element name="my-element">
<template>
<style>
:host {
position: absolute;
width: 100%;
height: 100%;