Skip to content

Instantly share code, notes, and snippets.

#include <WiFi.h>
#include <HTTPClient.h>
#include "driver/pcnt.h"
#define PULSE_INPUT_PIN 15 //パルスの入力ピン
#define PCNT_H_LIM_VAL 32767 //カウンタの上限
#define PCNT_L_LIM_VAL -32767 //カウンタの下限
const char SSID[] = "Wi-FiのSSID";
const char PASSWORD[] = "Wi-Fのパスワード";
@bahaki386
bahaki386 / CMakeError.log
Created December 1, 2017 07:07
vcpkg_zlib_20171201
Determining size of off64_t failed with the following output:
Change Dir: C:/development/vcpkg/buildtrees/zlib/x64-windows-rel/CMakeFiles/CMakeTmp
Run Build Command:"C:/development/vcpkg/downloads/tools/ninja/ninja-1.8.2/ninja.exe" "cmTC_61238"
[1/2] Building C object CMakeFiles\cmTC_61238.dir\OFF64_T.c.obj
FAILED: CMakeFiles/cmTC_61238.dir/OFF64_T.c.obj
C:\PROGRA~2\MICROS~1\2017\COMMUN~1\VC\Tools\MSVC\1411~1.255\bin\Hostx64\x64\cl.exe /nologo -DHAVE_STDDEF_H -DHAVE_STDINT_H -DHAVE_SYS_TYPES_H -D_LARGEFILE64_SOURCE=1 /DWIN32 /D_WINDOWS /W3 /utf-8 /MP /MDd /Zi /Ob0 /Od /RTC1 /showIncludes /FoCMakeFiles\cmTC_61238.dir\OFF64_T.c.obj /FdCMakeFiles\cmTC_61238.dir\ /FS -c C:\development\vcpkg\buildtrees\zlib\x64-windows-rel\CMakeFiles\CheckTypeSize\OFF64_T.c
Windows PowerShell
Copyright (C) Microsoft Corporation. All rights reserved.
Creating temporary directory C:\Users\bahaki\AppData\Local\Temp\HARUKIBABA-SURF_20171110-091917.
Take a repro trace? (y/n): n
Gather system information (this can take a few minutes)? (y/n): y
Dumping registry from LocalMachine\SOFTWARE\Microsoft\SQMClient.
Dumping registry from LocalMachine\SOFTWARE\Microsoft\Windows\CurrentVersion\Audio.
Dumping registry from LocalMachine\SOFTWARE\Microsoft\Windows\CurrentVersion\MMDevices.
Dumping registry from LocalMachine\SYSTEM\CurrentControlSet\Control\Class\{4d36e96c-e325-11ce-bfc1-08002be10318}.
@bahaki386
bahaki386 / gist:445e2cc50014e5a561fc8d5a99374505
Created October 14, 2016 00:58
brew info elmer | head 13
elmercsc/elmerfem/elmer: stable 8.0, HEAD
Elmer finite element solver
http://elmerfem.org
/usr/local/Cellar/elmer/HEAD-59349d6 (417 files, 56.6M)
Built from source on 2016-10-13 at 14:18:57 with: --with-elmergui --with-elmerice
From: https://github.com/ElmerCSC/homebrew-elmerfem/blob/master/elmer.rb
==> Dependencies
Build: cmake ✔, gcc ✔
Required: openblas ✔, scalapack ✔
Recommended: hypre ✔, mumps ✔
@bahaki386
bahaki386 / gist:ed3a49bfd57ca96179078362c57e6133
Created October 14, 2016 00:52
Elmer Solver Log on ThermalFlowCurvedPipe Sample @ El Capitan
ELMER SOLVER (v 8.2) STARTED AT: 2016/10/14 09:39:40
ParCommInit: Initialize #PEs: 1
MAIN:
MAIN: =============================================================
MAIN: ElmerSolver finite element software, Welcome!
MAIN: This program is free software licensed under (L)GPL
MAIN: Copyright 1st April 1995 - , CSC - IT Center for Science Ltd.
MAIN: Webpage http://www.csc.fi/elmer, Email elmeradm@csc.fi
MAIN: Version: 8.2, Compiled: 2016-09-20)
MAIN: =============================================================
@bahaki386
bahaki386 / javascript_resources.md
Last active August 29, 2015 14:06 — forked from jookyboi/javascript_resources.md
Here are a set of libraries, plugins and guides which may be useful to your Javascript coding.

Libraries

  • jQuery - The de-facto library for the modern age. It makes things like HTML document traversal and manipulation, event handling, animation, and Ajax much simpler with an easy-to-use API that works across a multitude of browsers.
  • Backbone - Backbone.js gives structure to web applications by providing models with key-value binding and custom events, collections with a rich API of enumerable functions, views with declarative event handling, and connects it all to your existing API over a RESTful JSON interface.
  • AngularJS - Conventions based MVC framework for HTML5 apps.
  • Underscore - Underscore is a utility-belt library for JavaScript that provides a lot of the functional programming support that you would expect in Prototype.js (or Ruby), but without extending any of the built-in JavaScript objects.
  • lawnchair - Key/value store adapter for indexdb, localStorage
@bahaki386
bahaki386 / 0_reuse_code.js
Last active August 29, 2015 14:06
Here are some things you can do with Gists in GistBox.
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console