Skip to content

Instantly share code, notes, and snippets.

const { awake, request, release } = useWakeLock()
...
...
return (
...
onClick={() => {
// can't mix with other functions to make sure
// the video is played under a user interaction?
@github0013
github0013 / FileUploadComponent.jsx
Created May 5, 2017 10:25
how to upload files using graphql + apollo client
class FileUploadComponent extends Component{
upload(){
this.props.mutate({
variables: {
id,
avatar: this.inputFile.files[0] //this is how you send file
}
}).
then(({data}) => {
console.log(data)
@github0013
github0013 / README.md
Last active October 26, 2022 22:37
東京三菱UFJ銀行BizStation(法人用ネットバンク)をOSX(mac)で!Rubyで!Selenium WebDriverで使い倒す!
* Executing task: platformio device monitor
--- Terminal on /dev/cu.usbmodem537D0225881 | 115200 8-N-1
--- Available filters and text transformations: colorize, debug, default, direct, esp32_exception_decoder, hexlify, log2file, nocontrol, printable, send_on_enter, time
--- More details at https://bit.ly/pio-monitor-filters
--- Quit: Ctrl+C | Menu: Ctrl+T | Help: Ctrl+T followed by Ctrl+H
[ 6517][D][main.cpp:62] setup(): [SIM LTE] preparing
[ 9518][D][main.cpp:66] setup(): [SIM LTE] initializing
AT
AT
@github0013
github0013 / select2-dynamic-tagging.jpg
Last active November 9, 2021 13:38
select2 Tagging Support how to dynamically add tag from JavaScript
select2-dynamic-tagging.jpg
0 info it worked if it ends with ok
1 verbose cli [
1 verbose cli '/usr/local/bin/node',
1 verbose cli '/usr/local/lib/node_modules/npm/bin/npm-cli.js',
1 verbose cli 'install',
1 verbose cli '@sentry/wizard@latest',
1 verbose cli '--global',
1 verbose cli '--prefix',
1 verbose cli '/root/.npm/_npx/7',
1 verbose cli '--loglevel',
@github0013
github0013 / GraphiQL.png
Last active May 5, 2017 02:11
apollo doesn't return values nor error when [Episode]! type has null value
GraphiQL.png
@github0013
github0013 / Root G3.jpg
Last active March 14, 2017 03:14
[2017年度版] 東京三菱UFJ銀行BizStation(法人用ネットバンク)をOSX(mac)で!Rubyで!Selenium WebDriverで使い倒す!
Root G3.jpg
@github0013
github0013 / local.timemachine.drive.plist
Last active November 6, 2016 13:10
how to auto-mount an osx time machine sparsebundle over a nas drive
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>Label</key>
<string>local.timemachine.drive</string>
<key>ProgramArguments</key>
<array>
<string>ruby</string>
<!-- change these parameters -->
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=EUC-JP" />
</head>
<body>
­·
</body>
</html>