1
anonymous No title
PlainText
#1
(HMAC SHA256)
$ curl -H "X-MBX-APIKEY: dbefbc809e3e83c283a984c3a1459732ea7db1360ca80c5c2c8867408d28cc83" -X POST 'https://fapi/binance.com/fapi/v1/order?symbol=BTCUSDT&side=BUY&type=LIMIT&quantity=1&price=9000&timeInForce=GTC&recvWindow=5000&timestamp=1591702613943&signature= 3c661234138461fcc7a7d8746c6558c9842d4e10870d2ecbedf7777cad694af9'


#2
(HMAC SHA256)
$ curl -H "X-MBX-APIKEY: dbefbc809e3e83c283a984c3a1459732ea7db1360ca80c5c2c8867408d28cc83" -X POST 'https://fapi/binance.com/fapi/v1/order' -d 'symbol=BTCUSDT&side=BUY&type=LIMIT&quantity=1&price=9000&timeInForce=GTC&recvWindow=5000&timestamp=1591702613943&signature= 3c661234138461fcc7a7d8746c6558c9842d4e10870d2ecbedf7777cad694af9'


#3
(HMAC SHA256)
$ curl -H "X-MBX-APIKEY: dbefbc809e3e83c283a984c3a1459732ea7db1360ca80c5c2c8867408d28cc83" -X POST 'https://fapi/binance.com/fapi/v1/order?symbol=BTCUSDT&side=BUY&type=LIMIT&timeInForce=GTC' -d 'quantity=1&price=9000&recvWindow=5000&timestamp=1591702613943&signature=3c661234138461fcc7a7d8746c6558c9842d4e10870d2ecbedf7777cad694af9'
  
anonymous No title
PlainText
// UWSC スクリプト
// JWW の文字入力の初期状態を半角にする
WHILE 1
  FLG=0
  ID=GETID(GET_ACTIVE_WIN)
  FUKIDASI(STATUS(ID,ST_TITLE))
  SLEEP(0.5)
  WHILE POS("文字入力",STATUS(ID,ST_TITLE)) //文字入力
    IF FLG=0 
      IF GETKEYSTATE(TGL_IME) THEN KBD(VK_KANJI, CLICK) //全角なら半角に
    ELSE
      IF GETKEYSTATE(TGL_IME) THEN FUKIDASI("全角") ELSE FUKIDASI("半角")
      SLEEP(0.5)
    ENDIF
    FLG=FLG+1
  WEND
  WHILE POS("文字変更",STATUS(ID,ST_TITLE)) //文字変更
    IF FLG=0 
      IF GETKEYSTATE(TGL_IME) THEN KBD(VK_KANJI, CLICK) //全角なら半角に
    ELSE
      IF GETKEYSTATE(TGL_IME) THEN FUKIDASI("全角") ELSE FUKIDASI("半角")
      SLEEP(0.5)
    ENDIF
    FLG=FLG+1
  WEND
WEND
anonymous No title
PlainText
//UWSC Script
//吹き出しが下から噴き出すプログラム

PUBLIC RZZ=0
While true
    FKIDSI()
    Fukidasi(RZZ,1200,10,0,3,,,$AAAAAA)
Wend
procedure FKIDSI()
    IF RZZ<64
        Thread FKDSSUB()
    ENDIF
fend
procedure FKDSSUB()
    RZZ = RZZ + 1
    Xinc = ((random(6)+1) * (random(2)*2 -1)) /1.9
    Yinc = (random(8)/10+0.2) /4
    z=random($FFFFFF)
    X=640
    Y=1010
    for i=-100 TO 100
        Fukidasi(" ", X, Y, 0, ,,,Z)
        SLEEP(0.01)
        Ymov = Yinc * i
        X = X + Xinc
        Y = Y + Ymov
    next
    RZZ = RZZ - 1
fend
anonymous boards.local.txt
PlainText
m5stack-atom.name=M5Stack-ATOM

m5stack-atom.upload.tool=esptool_py
m5stack-atom.upload.maximum_size=1310720
m5stack-atom.upload.maximum_data_size=327680
m5stack-atom.upload.wait_for_upload_port=true

m5stack-atom.serial.disableDTR=true
m5stack-atom.serial.disableRTS=true

m5stack-atom.build.mcu=esp32
m5stack-atom.build.core=esp32
m5stack-atom.build.variant=m5stack_atom
m5stack-atom.build.board=M5Stack_ATOM

m5stack-atom.build.f_cpu=240000000L
m5stack-atom.build.flash_size=4MB
m5stack-atom.build.flash_freq=80m
m5stack-atom.build.flash_mode=dio
m5stack-atom.build.boot=dio
m5stack-atom.build.partitions=default
m5stack-atom.build.defines=

m5stack-atom.menu.PartitionScheme.default=Default
m5stack-atom.menu.PartitionScheme.default.build.partitions=default
m5stack-atom.menu.PartitionScheme.no_ota=No OTA (Large APP)
m5stack-atom.menu.PartitionScheme.no_ota.build.partitions=no_ota
m5stack-atom.menu.PartitionScheme.no_ota.upload.maximum_size=2097152
m5stack-atom.menu.PartitionScheme.min_spiffs=Minimal SPIFFS (Large APPS with OTA)
m5stack-atom.menu.PartitionScheme.min_spiffs.build.partitions=min_spiffs
m5stack-atom.menu.PartitionScheme.min_spiffs.upload.maximum_size=1966080


m5stack-atom.menu.UploadSpeed.1500000=1500000
m5stack-atom.menu.UploadSpeed.1500000.upload.speed=1500000
m5stack-atom.menu.UploadSpeed.750000=750000
m5stack-atom.menu.UploadSpeed.750000.upload.speed=750000
m5stack-atom.menu.UploadSpeed.500000=500000
m5stack-atom.menu.UploadSpeed.500000.upload.speed=500000
m5stack-atom.menu.UploadSpeed.250000=250000
m5stack-atom.menu.UploadSpeed.250000.upload.speed=250000
m5stack-atom.menu.UploadSpeed.115200=115200
m5stack-atom.menu.UploadSpeed.115200.upload.speed=115200



m5stack-atom.menu.DebugLevel.none=None
m5stack-atom.menu.DebugLevel.none.build.code_debug=0
m5stack-atom.menu.DebugLevel.error=Error
m5stack-atom.menu.DebugLevel.error.build.code_debug=1
m5stack-atom.menu.DebugLevel.warn=Warn
m5stack-atom.menu.DebugLevel.warn.build.code_debug=2
m5stack-atom.menu.DebugLevel.info=Info
m5stack-atom.menu.DebugLevel.info.build.code_debug=3
m5stack-atom.menu.DebugLevel.debug=Debug
m5stack-atom.menu.DebugLevel.debug.build.code_debug=4
m5stack-atom.menu.DebugLevel.verbose=Verbose
m5stack-atom.menu.DebugLevel.verbose.build.code_debug=5
anonymous No title
PlainText
; PlatformIO Project Configuration File
;
;   Build options: build flags, source filter
;   Upload options: custom upload port, speed and extra flags
;   Library options: dependencies, extra library storages
;   Advanced options: extra scripting
;
; Please visit documentation for the other options and examples
; https://docs.platformio.org/page/projectconf.html

[platformio]
default_envs = m5stack-core-esp32

[common_env_data]

[env:m5stack-core-esp32]
platform = espressif32
board = m5stack-core-esp32
framework = arduino
lib_deps =
  M5Stack

build_flags =
  -DARDUINO_M5Stack_Core_ESP32

[env:m5stack-fire]
platform = espressif32
board = m5stack-fire
framework = arduino
lib_deps =
  M5Stack

build_flags =
  -DARDUINO_M5STACK_FIRE

[env:m5stick-c]
platform = espressif32
board = m5stick-c
framework = arduino
lib_deps =
  M5StickC

build_flags =
  -DARDUINO_M5Stick_C
anonymous Adruino IDE経由でDigiSparkのパリピセッションベース
PlainText
#include <Adafruit_NeoPixel.h>
#define BUTTON_PIN   2
#define PIXEL_PIN    0    //セッションベースに仕込んだGRB LED接続ピン
#define PIXEL_COUNT 12    //LEDの数=12個
Adafruit_NeoPixel strip = Adafruit_NeoPixel(PIXEL_COUNT, PIXEL_PIN, NEO_GRB + NEO_KHZ800);    //NeoPoxelの諸処理

bool oldState = HIGH;  //直前のボタン状態保持
int showType = 0; //ボタン押下回数カウンタ
int x = 0;

void setup() {
  pinMode(BUTTON_PIN, INPUT_PULLUP);
  strip.begin();  //必須
  strip.show();   // Initialize all pixels to 'off'
  //↓↓↓起動後の(割とどうでもいい)演出↓↓↓
  colorWipe(strip.Color(0, 0, 255), 0);//青
  for(int i=0;i<3;i++){
    colorWipe(strip.Color(0, 0, 0), 50);//黒(off)でワイプ
    delay(500);
    colorWipe(strip.Color(32, 64, 0), 50);//赤橙でワイプ
    delay(500);
  }
  colorWipe(strip.Color(0, 0, 0), 50);//黒(off)でワイプ
  delay(500);
  colorWipe(strip.Color(3, 2, 5), 0);//弱い白でワイプ
}

void loop() {
  bool newState = digitalRead(BUTTON_PIN);  //ボタン状態の取得

  if (newState == LOW && oldState == HIGH) {//ボタン押下によるHighからLowへの変化検知
    delay(20);  //押して離す僅かな間の時間稼ぎ
    newState = digitalRead(BUTTON_PIN);   //delayを経てなおLowなら「押された」とみなす
    if (newState == LOW) {
      showType++;                         //「押された」ならshowType変数を増やす
    }
      if (showType == 1){
        for(int i =0;i<5;i++){rainbowCycle(0);}
        for(int i =0;i<1;i){
        rainbow(50);
        if(digitalRead(BUTTON_PIN) == LOW){
          showType++;i++;
          colorWipe(strip.Color(127, 0, 0), 0);//緑でワイプ
          colorWipe(strip.Color(1, 1, 1), 50);
          continue;
          }
        }
       }
      if (showType >= 2){
        showType=0;                       //showType変数が一定値以上なら0にリセット
    }
  }

  // Set the last button state to the old state.
  oldState = newState;
}

//LED点灯スイッチ関数================================================================
//switchで制御しているためパターン毎にループがなされない問題あり
void startShow(int i) {
  switch(i){
    case 0: colorWipe(strip.Color(255, 255, 255), 50);    // White
            break;
    case 1: colorWipe(strip.Color(255, 0, 0), 50);  // Green
            break;
    case 2: colorWipe(strip.Color(0, 255, 0), 50);  // Red
            break;
    case 3: colorWipe(strip.Color(0, 0, 255), 50);  // Blue
            break;
    case 4: theaterChase(strip.Color(127, 127, 127), 50); // White
            break;
    case 5: theaterChase(strip.Color(127,   0,   0), 50); // Green
            break;
    case 6: theaterChase(strip.Color(  0, 127,   0), 50); // Red
            break;
    case 7: theaterChase(strip.Color(  0,   0, 127), 50); // Blue
            //rainbow(20);
            break;
    case 8: colorWipe(strip.Color(  0,   0,   0), 50);
            //rainbowCycle(5);
            break;
    case 9: theaterChaseRainbow(1);
            break;
  }
}
//LED点灯パターン関数郡==================================================================================
void colorWipe(uint32_t c, uint8_t wait) {
  for(uint16_t i=0; i<strip.numPixels(); i++) {
      strip.setPixelColor(i, c);
      strip.show();
      delay(wait);
  }
}
void rainbow(uint8_t wait) {
  uint16_t i, j;

  for(j=0; j<256; j++) {
    for(i=0; i<strip.numPixels(); i++) {
      strip.setPixelColor(i, Wheel((i+j) & 255));
    }
    strip.show();
    delay(wait);
  }
}
void rainbowCycle(uint8_t wait) {
  uint16_t i, j;

  for(j=0; j<256; j++) {
    for(i=0; i< strip.numPixels(); i++) {
      strip.setPixelColor(i, Wheel(((i * 256 / strip.numPixels()) + j) & 255));
    }
    strip.show();
    delay(wait);
  }
}
void theaterChase(uint32_t c, uint8_t wait) {
  for (int j=0; j<10; j++) {  //do 10 cycles of chasing
    for (int q=0; q < 3; q++) {
      for (int i=0; i < strip.numPixels(); i=i+3) {
        strip.setPixelColor(i+q, c);    //turn every third pixel on
      }
      strip.show();
     
      delay(wait);
     
      for (int i=0; i < strip.numPixels(); i=i+3) {
        strip.setPixelColor(i+q, 0);        //turn every third pixel off
      }
    }
  }
}
void theaterChaseRainbow(uint8_t wait) {
  for (int j=0; j < 256; j++) {     // cycle all 256 colors in the wheel
    for (int q=0; q < 3; q++) {
        for (int i=0; i < strip.numPixels(); i=i+3) {
          strip.setPixelColor(i+q, Wheel( (i+j) % 255));    //turn every third pixel on
        }
        strip.show();
       
        delay(wait);
       
        for (int i=0; i < strip.numPixels(); i=i+3) {
          strip.setPixelColor(i+q, 0);        //turn every third pixel off
        }
    }
  }
}

uint32_t Wheel(byte WheelPos) { //rainbow関数で使用
  WheelPos = 255 - WheelPos;
  if(WheelPos < 85) {
   return strip.Color(255 - WheelPos * 3, 0, WheelPos * 3);
  } else if(WheelPos < 170) {
    WheelPos -= 85;
   return strip.Color(0, WheelPos * 3, 255 - WheelPos * 3);
  } else {
   WheelPos -= 170;
   return strip.Color(WheelPos * 3, 255 - WheelPos * 3, 0);
  }
}
anonymous testH.264
PlainText
ffmpeg -i ./input.h264 -ss 0 -t 10 -f image2 -vcodec png -r 100 "./test/%05d.png"
anonymous No title
PlainText
💩
anonymous No title
PlainText
#!/bin/bash

#This script created by Midnight Express Ginga81(ginga81) 2019
#This script is Public Domain

#I checked this script on Ubuntu19.04 and Wine4.0.1 and winetricks 20190615-next

#This scrript creates to running environment with MikuMikuDance64 with MikuMikuEffect64 and PMXEditor64.
#適当なフォルダにこのスクリプトを用意し、実行すると自動的に準備を整えます。VCrun2008と2010は自動化できなかったので同意してインストールしてください。
#実行した後MikuMikuDance_v931x64.zipとPmxEditor_0254f.zip、MMEffect_x64_v037.zipをWindowsと同じ方法で
#~/.WineMMD64/drive_c/Program Files/以下に展開するだけです。
#実行は
#WINEPREFIX=~/.WineMMD64 wine ~/.WineMMD64/drive_c/Program\ Files/MikuMikuDance_v931x64/MikuMikuDance.exe
#WINEPREFIX=~/.WineMMD64 wine ~/.WineMMD64/drive_c/Program\ Files/PmxEditor_0254f/PmxEditor_x64.exe
#アンインストールは~/.WineMMD64をまるごと消せば終わりで、設定ファイルは残らず綺麗に消えます。

WINEPREFIX=~/.WineMMD64 wineboot
WINEPREFIX=~/.WineMMD64 winetricks -q vcrun2005 vcrun2008 vcrun2010 d3dx9 d3dxof d3dx9_43 fakejapanese_ipamona dotnet40 vcrun2013 devenum quartz qcap qedit win7 quartz gdiplus
WINEPREFIX=~/.WineMMD64 wine reg add HKCU\\Software\\Wine\\DllOverrides /v msvcr90 /t reg_sz /d "builtin"
WINEPREFIX=~/.WineMMD64 wine reg add HKCU\\Software\\Wine\\DllOverrides /v d3d9 /t reg_sz /d "native,builtin"
WINEPREFIX=~/.WineMMD64 wine reg add HKCU\\Software\\Wine\\DllOverrides /v d3dx9_43 /t reg_sz /d "native,builtin"
WINEPREFIX=~/.WineMMD64 wine reg add HKCU\\Software\\Wine\\DllOverrides /v d3dxof /t reg_sz /d "native,builtin"
WINEPREFIX=~/.WineMMD64 wine reg add HKCU\\Software\\Wine\\DllOverrides /v d3dx9 /t reg_sz /d "native,builtin"
WINEPREFIX=~/.WineMMD64 wine reg add HKCU\\Software\\Wine\\DllOverrides /v devenum /t reg_sz /d "native"
WINEPREFIX=~/.WineMMD64 wine reg add HKCU\\Software\\Wine\\DllOverrides /v quartz /t reg_sz /d "native,builtin"
WINEPREFIX=~/.WineMMD64 wine reg add HKCU\\Software\\Wine\\DllOverrides /v qcap /t reg_sz /d "native,builtin"
WINEPREFIX=~/.WineMMD64 wine reg add HKCU\\Software\\Wine\\DllOverrides /v qedit /t reg_sz /d "native,builtin"

#vcrun2008 https://www.microsoft.com/ja-jp/download/details.aspx?id=15336
wget -c https://download.microsoft.com/download/f/0/c/f0cf29d7-442e-49cd-98aa-eba28c2f8ab6/vcredist_x64.exe
mv ./vcredist_x64.exe ./vcredist_x64-2008.exe
WINEPREFIX=~/.WineMMD64 wine ./vcredist_x64-2008.exe

#vcrun2010 https://www.microsoft.com/ja-jp/download/details.aspx?id=14632
wget -c https://download.microsoft.com/download/3/2/2/3224B87F-CFA0-4E70-BDA3-3DE650EFEBA5/vcredist_x64.exe
mv ./vcredist_x64.exe ./vcredist_x64-2010.exe
WINEPREFIX=~/.WineMMD64 wine ./vcredist_x64-2010.exe

#d3dcompiler_43だけは必ず最後に入れなければならない。
WINEPREFIX=~/.WineMMD64 winetricks -q d3dcompiler_43
Don't you submit code?
Submit
1