Skip to content

Instantly share code, notes, and snippets.

View thgh's full-sized avatar
💭
#PWA

Thomas Ghysels thgh

💭
#PWA
View GitHub Profile
@thgh
thgh / color.lighten.ts
Last active July 1, 2020 07:59 — forked from renancouto/color.lighten.js
Method to lighten / darken hex colors using Javascript.
export function lighten(color = '#004488', opacity = 1) {
// Convert to color channels
const num = parseInt(color.slice(1), 16)
let R = num >> 16,
G = (num >> 8) & 0x00ff,
B = num & 0x0000ff
// Interpolate channel
opacity = Math.min(Math.max(opacity, 0), 1)
R = Math.round(R + (1 - opacity) * (255 - R))
@thgh
thgh / deployer.js
Created May 1, 2017 11:10
deployer.js
#!/usr/bin/env node
const exec = require('child_process').exec
// Default options
const options = {
host: '0.0.0.0',
port: 50005,
path: '/webhook',
delay: 10
}
@thgh
thgh / keybase.md
Created February 8, 2017 22:25
Keybase

Keybase proof

I hereby claim:

  • I am thgh on github.
  • I am thgh (https://keybase.io/thgh) on keybase.
  • I have a public key ASASI0m6nzmL66ILlojU3WmRopITywhsneYNLaYy43VK-wo

To claim this, I am signing this object:

@thgh
thgh / App.vue
Last active March 20, 2016 22:24
<template>
<div>
<comp-a level="1"></comp-a>
</div>
</template>
<script>
import CompA from './components/CompA'
export default {
@thgh
thgh / designer.html
Last active August 29, 2015 14:03
designer
<link rel="import" href="../core-icon-button/core-icon-button.html">
<link rel="import" href="../core-toolbar/core-toolbar.html">
<link rel="import" href="../core-header-panel/core-header-panel.html">
<link rel="import" href="../paper-tabs/paper-tabs.html">
<link rel="import" href="../paper-tabs/paper-tab.html">
<polymer-element name="my-element">
<template>
<style>
@thgh
thgh / minepeon-latest.md
Last active December 21, 2015 20:59
MinePeonWebUI Latest

Read this before trying to update MinePeon!

Updating MinePeon with git pull might break functionality! That's normal. Be warned!

Bugtesting is very welcome, consider filing your issues here instead of bitcointalk: https://github.com/MineForeman/MinePeonWebUI/issues?state=open

Thanks!

Changes from 0.2.3 to master branch:

@thgh
thgh / minepeon-build.md
Last active July 13, 2016 17:30
Rpi mining from scratch: Arch ARM, a webstack, cgminer and MinePeon.

Rpi mining from scratch

Powered by Arch ARM, Apache, PHP, cgminer and MinePeon.

Linux

Get Arch Linux ARM

Write Arch Linux ARM to SD and use it to boot your rpi.

@thgh
thgh / 1.css
Created March 1, 2012 12:01
NextUp - Mobile group scheduler
.event {border:none;border-top:1px solid #000;padding:5px;font-size:120%}
.detail {border:none;padding:5px;}
.now {font-size:10px;text-align:right;}
.today {background:#290;color:#fff;margin-top:5px;}
.option {background:#000;text-align:center;margin:5px}
.option a{padding:5px;margin:auto;background:#027;text-decoration:none;color:#ccc;width:100%;font-size:140%}
.later {background:#333;color:#999;}
.later hr{border-color:#666;}