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
name: GitHub Pages | |
on: | |
push: | |
branches: | |
- master | |
jobs: | |
build-deploy: |
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
// @flow | |
type Color = 'red' | 'black'; | |
const RED = 'red'; | |
const BLACK = 'black'; | |
type Mark = {|name: string, color: Color|}; | |
const SPADE: Mark = {name: 'S', color: BLACK}; | |
const HEART: Mark = {name: 'H', color: RED}; | |
const CLUB: Mark = {name: 'C', color: BLACK}; |
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 | |
adb kill-server | |
adb start-server | |
tcpip_port="5555" | |
adbip=`adb shell netcfg |grep wlan0 |egrep -o '(\d{1,3}\.){3}(\d{1,3})'` | |
adb tcpip $tcpip_port | |
adb connect $adbip:$tcpip_port |
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 <Arduino.h> | |
#include <ESP8266WiFi.h> | |
#define N 36 | |
extern "C" { | |
#include "user_interface.h" | |
} | |
int c = 16; |
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 has31 = month => Boolean((month & 1) ^ ((month >> 3) & 1)) | |
test('1-12', () => { | |
expect(has31(1)).toMatchInlineSnapshot(`true`) | |
expect(has31(2)).toMatchInlineSnapshot(`false`) | |
expect(has31(3)).toMatchInlineSnapshot(`true`) | |
expect(has31(4)).toMatchInlineSnapshot(`false`) | |
expect(has31(5)).toMatchInlineSnapshot(`true`) | |
expect(has31(6)).toMatchInlineSnapshot(`false`) | |
expect(has31(7)).toMatchInlineSnapshot(`true`) |
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 has31 = month => Boolean((month & 1) ^ ((month >> 3) & 1)) | |
test('1-12', () => { | |
expect(has31(1)).toMatchInlineSnapshot(`true`) | |
expect(has31(2)).toMatchInlineSnapshot(`false`) | |
expect(has31(3)).toMatchInlineSnapshot(`true`) | |
expect(has31(4)).toMatchInlineSnapshot(`false`) | |
expect(has31(5)).toMatchInlineSnapshot(`true`) | |
expect(has31(6)).toMatchInlineSnapshot(`false`) | |
expect(has31(7)).toMatchInlineSnapshot(`true`) |
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
function awbgt(tmp, hmd) { | |
return ( | |
(hmd - 20) * (Math.pow(tmp - 40, 2) * -0.00025 + 0.185) + | |
(11 / 15) * (tmp - 25) + | |
17.8 | |
) | |
} |
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
.me.uk - $8 | |
.co.uk - $9 | |
.de - $9 | |
.be - $9 | |
.name - $9 | |
.org.uk - $9 | |
.uk - $9 | |
.click - $10 | |
.es - $10 | |
.link - $10 |
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
n |
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 | |
[ $USER = "root" ] && echo "オッケー" || echo "ごめん無理" |