Skip to content

Instantly share code, notes, and snippets.

View pH200's full-sized avatar

pH pH200

  • Cytisan Software
  • Taipei, Taiwan
View GitHub Profile
@pH200
pH200 / index.html
Created April 27, 2016 02:17
Illustration of some issue with cycle-react + react-router
<html>
<head>
<title>RxJs+Cycle-React</title>
</head>
<body>
<div id='root'>
</div>
</body>
<script src="/index.js"></script>
</html>
@pH200
pH200 / sleep.ps1
Created November 19, 2018 19:22
Trigger IFTTT webhooks if the device goes into sleep mode
# Turn of all lights when your PC goes to sleep
#
# If {Webhooks receive a web request} then {Philips Hue turn off lights}
# https://ifttt.com
# Change $hook, $from and $to of your preference.
$hook = 'https://maker.ifttt.com/trigger/{event}/with/key/{key}'
$from = '00:00'
$to = '06:00'