Skip to content

Instantly share code, notes, and snippets.

Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@ak1211
ak1211 / accessGitHubTraffic.py
Last active November 20, 2018 05:26
GitHub Trafficをpythonで取得したい
#!/usr/bin/env python
# -*- coding: utf-8 -*-
import os, json, functools
from urllib2 import urlopen, Request
# GitHub Traffic API
# https://developer.github.com/v3/repos/traffic/
def openTrafficAPI (owner, repo, token, path):
url = "https://api.github.com/repos/%s/%s/traffic/%s" % (owner, repo, path)
headers = {
@ak1211
ak1211 / irrec2.c
Created January 2, 2020 07:24
irrec プログラム(C言語とpigpioデーモンライブラリ)
/*
irremocon <https://github.com/ak1211/irremocon>
Copyright 2019 Akihiro Yamamoto
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
@ak1211
ak1211 / irsend.c
Created January 2, 2020 07:25
irsend プログラム(C言語とpigpioデーモンライブラリ)
/*
irremocon <https://github.com/ak1211/irremocon>
Copyright 2019 Akihiro Yamamoto
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
@ak1211
ak1211 / irrec1.c
Created January 2, 2020 07:23
irrec プログラム(C言語とpigpioライブラリ)
/*
irremocon <https://github.com/ak1211/irremocon>
Copyright 2019 Akihiro Yamamoto
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
@ak1211
ak1211 / potic-solver.js
Created April 20, 2020 15:28
電子ボリュームの減衰値を計算するJavaScript
//
// 電子ボリュームの減衰値を計算するJavaScript
// http://ak1211.com
// Copyright (c) 2018 Akihiro Yamamoto
//
//
// This software is released under the MIT License.
// http://opensource.org/licenses/mit-license.php
//
@ak1211
ak1211 / main.py
Last active June 16, 2020 04:05
赤外線リモコン信号取得用 circuit python プログラム
# https://ak1211.com/7586 (main.py)
# Copyright 2020 Akihiro Yamamoto
# Licensed under the Apache License, Version 2.0
import time
import board
import pulseio
from digitalio import DigitalInOut, Direction
# IRM
pulses = pulseio.PulseIn(board.D0, maxlen=2000, idle_state=True)
@ak1211
ak1211 / main.py
Last active June 16, 2020 04:16
赤外線リモコン信号取得と送信用 circuit python プログラム
# https://ak1211.com/7586 (main.py)
# Copyright 2020 Akihiro Yamamoto
# Licensed under the Apache License, Version 2.0
from digitalio import DigitalInOut, Direction
import array
import board
import pulseio
import supervisor
import sys
import time
@ak1211
ak1211 / main.py
Created July 8, 2021 07:11
ak1211 / MyFirstApplication 用赤外線リモコン信号取得と送信用 circuit python プログラム
# https://ak1211.com/7707 (main.py)
# Copyright 2021 Akihiro Yamamoto
# Licensed under the Apache License, Version 2.0
from digitalio import DigitalInOut, Direction
import board
import pulseio
import supervisor
import sys
import time
import array
/*
* i2c_lcd.c
*
* Created on: 2021/11/22
* Author: Akihiro Yamamoto
*
* Copyright 2021 Akihiro Yamamoto
* Licensed under the Apache License, Version 2.0
*
*/