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
#!/usr/bin/env ruby | |
require 'optparse' | |
require 'mini_exiftool' | |
option_hash = {} | |
OptionParser.new{|opt| | |
opt.on('-i','--input JpegFilename' 'string JpegFilename') {|v| option_hash[:orgpathname] = v} | |
opt.parse!(ARGV) | |
} |
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
w = 25; | |
$fn=32; | |
module kadomaru(w,dir) { | |
rotate(dir*90) { | |
intersection() { | |
translate([2,0,0]) { | |
cylinder(h=w,r=2); | |
} | |
cube([2,2,w]); |
We can make this file beautiful and searchable if this error is corrected: It looks like row 2 should actually have 1 column, instead of 2 in line 1.
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
- CSIA现有会员名录:集成电路类 | |
中国电子科技集团公司第四十七研究所,www.dz47.com | |
北京首钢微电子有限公司,http://www.bsmc.com.cn/ | |
西安微电子技术研究所(中国航天科技集团公司第九研究院第七七一研究所),www. | |
哈尔滨海格科技发展有限责任公司,www.hegtech.com | |
北京伊泰克电子有限公司,www.estek.com.cn | |
华润微电子有限公司,www.crmicro.com | |
北京大学信息科学技术学院微电子学研究院,www.ime.pku.edu.cn | |
英飞凌科技(中国)有限公司,www.infineon.com/cn | |
上海华虹宏力半导体制造有限公司,www.hhgrace.com |
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
def output_16(q16) | |
output = <<"EOS" | |
{ "title": "#{q16}", | |
"arg": "#{q16}", | |
}, | |
{ "title": "0x#{q16}", | |
"arg": "0x#{q16}", | |
} | |
EOS | |
output |
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
#InstallKeybdHook | |
#UseHook | |
u::4 | |
i::5 | |
o::6 | |
j::1 | |
k::2 | |
l::3 | |
p::* | |
+u::u |
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
import lcd | |
import utime | |
import sys | |
from machine import I2C | |
from Maix import GPIO | |
from fpioa_manager import * | |
i2c = I2C(I2C.I2C0, freq=400000, scl=28, sda=29) | |
# And a short delay to wait until the I2C port has finished activating. | |
utime.sleep_ms(100) |
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
import lcd #for test | |
from machine import I2C | |
i2c = I2C(I2C.I2C0, freq=400000, scl=28, sda=29) | |
lcd.init() #for test | |
lcd.draw_string(100, 100, "hello maixpy", lcd.RED, lcd.BLACK) #for test | |
i2c.writeto_mem(0x34, 0x91,b'\x70') # minimum | |
i2c.writeto_mem(0x34, 0x91,b'\xf0') # maximum |
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
#!/usr/bin/env python | |
# -*- coding: utf-8 -*- | |
from __future__ import (division, print_function, | |
absolute_import, unicode_literals) | |
from pytodoist import todoist | |
API_TOKEN = 'XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX' | |
def main(): |
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
# Original https://github.com/sipeed/MaixPy_scripts/blob/master/machine_vision/demo_find_face.py | |
# for MAiX BiT | |
import sensor | |
import image | |
import lcd | |
import time | |
import KPU as kpu | |
clock = time.clock() |
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 <M5StickC.h> | |
#include <WiFi.h> | |
#include <time.h> | |
RTC_TimeTypeDef RTC_TimeStruct; | |
RTC_DateTypeDef RTC_DateStruct; | |
static const int JST = 3600 * 9; | |
static const char *wd[7] = {"Sun", "Mon", "Tue", "Wed", "Thr", "Fri", "Sat"}; |