This file contains 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
// Type definitions for @root/asn1 1.0 | |
// Project: https://git.coolaj86.com/coolaj86/asn1.js | |
// Definitions by: Junxiao Shi <https://github.com/yoursunny> | |
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped | |
// Minimum TypeScript Version: 3.7 | |
export {}; | |
interface Element<V extends string|Uint8Array> { | |
type: number; |
This file has been truncated, but you can view the full file.
This file contains 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 | |
# | |
# Hi There! | |
# You may be wondering what this giant blob of binary data here is, you might | |
# even be worried that we're up to something nefarious (good for you for being | |
# paranoid!). This is a base85 encoding of a zip file, this zip file contains | |
# an entire copy of pip (version 19.3.1). | |
# | |
# Pip is a thing that installs packages, pip itself is a package that someone | |
# might want to install, especially if they're looking to run this get-pip.py |
This file contains 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
const IPGEOLOCATION_IO_APIKEY = "INSERT-APIKEY-HERE"; | |
addEventListener("fetch", event => { | |
event.respondWith(handleRequest(event.request)) | |
}); | |
async function getGeoLocation(ip) { | |
const url = new URL("https://api.ipgeolocation.io/ipgeo"); | |
url.searchParams.set("apiKey", IPGEOLOCATION_IO_APIKEY); | |
url.searchParams.set("ip", ip); |
This file contains 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
/* | |
Halloween 2019 ODROID-GO sketch | |
- press A button: draw pumpkin with random color | |
- press B button: draw pumpkin with realistic color | |
- press MENU button: display QR code of source code link | |
*/ | |
#include <odroid_go.h> |
This file contains 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
.nyc_output | |
coverage | |
node_modules | |
package-lock.json |
This file contains 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
#!/bin/bash | |
# OpenWrt 18.06.4 for Banana Pi R2 | |
# Make SD or eMMC image from official kernel and rootfs images. | |
# Inspired by https://github.com/BPI-SINOVOIP/openwrt/commit/b4dfaeca4d33ad88364bfb7df353b3dfca2883fe | |
set -e | |
KIND=$1 | |
if [[ $KIND != sd ]] && [[ $KIND != emmc ]]; then | |
echo Usage: $0 '<sd|emmc> [outfile]' >/dev/stderr |
This file contains 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
// Watch @EmojiTetra Live on ESP32 OLED Display | |
// https://yoursunny.com/t/2018/EmojiTetra-OLED/ | |
#include <HTTPClient.h> | |
#include <U8g2lib.h> // https://github.com/olikraus/U8g2_Arduino/tree/e4178df6b8c69f1880d6d44719a286540e9e94a5 | |
#include <WiFi.h> | |
const char* WIFI_SSID = "my-wifi"; | |
const char* WIFI_PASS = "my-password"; |
This file contains 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 "KeyInWifi.hpp" | |
#include <cassert> | |
#include <cstdlib> | |
#include <cstring> | |
#include <vector> | |
#include <WiFi.h> | |
#include <WString.h> | |
#include <U8x8lib.h> | |
#define DELAY_CHOICE 250 |