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 <ESP8266WiFi.h> // or WiFi.h for ESP32 | |
#include <WiFiClientSecure.h> | |
#include <map> | |
const char* const GOOGLE_APIKEY = "gggggggggggggggggggggggggggggg"; | |
const char* const SLACK_TOKEN = "ssssssssssssssssssssssssssssssssssss"; | |
void setup() | |
{ | |
pinMode(14,OUTPUT); |
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
import 'package:flutter/material.dart'; | |
/// The class controls every [Hero] widget has it's own name. | |
/// If the code generates [Hero.tag] by some model derived algorithm, | |
/// especially in list widgets such as [ListView.builder], the tag may | |
/// conflict in some case. The class has internal tag list and if same tag | |
/// is used twice, it does not insert [Hero] in that case. | |
/// ```dart | |
/// Widget build(BuildContext context) { |
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
/* | |
* The MIT License | |
* | |
* Further resources on the MIT License | |
* Copyright 2018 Cuminas Corporation/@espresso3389 | |
* | |
* Permission is hereby granted, free of charge, to any person obtaining a copy | |
* of this software and associated documentation files (the "Software"), to | |
* deal in the Software without restriction, including without limitation the | |
* rights to use, copy, modify, merge, publish, distribute, sublicense, and/or |
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
'use strict'; | |
import fs from 'fs-extra'; | |
try { | |
const srcfn = 'sorucefile'; | |
const dstfn = 'tmp.bin'; | |
const src = fs.createReadStream(srcfn); | |
const dst = fs.createWriteStream(dstfn); |
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
Windows Registry Editor Version 5.00 | |
[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\i8042prt\Parameters] | |
"LayerDriver JPN"="kbd106.dll" | |
"OverrideKeyboardIdentifier"="PCAT_106KEY" | |
"OverrideKeyboardType"=dword:00000007 | |
"OverrideKeyboardSubtype"=dword:00000002 |
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
Windows Registry Editor Version 5.00 | |
[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\i8042prt\Parameters] | |
"LayerDriver JPN"="kbd101.dll" | |
"OverrideKeyboardIdentifier"="PCAT_101KEY" | |
"OverrideKeyboardType"=dword:00000007 | |
"OverrideKeyboardSubtype"=dword:00000000 | |
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
Windows Registry Editor Version 5.00 | |
[HKEY_CLASSES_ROOT\Directory\Background\shell\runas] | |
@="PowerShell ウィンドウをここに開く(管理者)" | |
"Extended"="" | |
"NoWorkingDirectory"="" | |
"ShowBasedOnVelocityId"=dword:00639bc8 | |
[HKEY_CLASSES_ROOT\Directory\Background\shell\runas\command] | |
@="powershell.exe -noexit -command Set-Location -literalPath '%V'" |
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/sh | |
# The script requires root permission or sudo. | |
# Switch to GUI mode (Alt-7) | |
chvt 7 | |
# Disable screen blank (screen saver) | |
setvesablank off | |
# Disable cursor blinking on the screen top | |
echo 0 > /sys/class/graphics/fbcon/cursor_blink |
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
int main() | |
{ | |
std::mt19937 r; | |
for (;;) | |
std::printf("%d\n", r()); | |
} |
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 <cstdio> | |
#include <random> | |
#include <experimental/generator> | |
auto random() | |
{ | |
std::mt19937 r; | |
for (;;) | |
co_yield r(); | |
} |