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
<p>Lorem ipsum dolor sit amet, consectetur adipisicing elit. Repellat odit officiis necessitatibus laborum asperiores et adipisci dolores corporis, vero distinctio voluptas, suscipit commodi architecto, aliquam fugit. Nesciunt labore reiciendis blanditiis!</p> | |
<div class="shadow-host" style="--ul-color-3: orange;"> | |
<!-- Also could be a | |
<custom-element /> | |
--> | |
</div> |
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
let i = 0 | |
const t = Date.now() + 5000 | |
function raf() { | |
requestAnimationFrame(() => { | |
if(Date.now() < t){ | |
i++ | |
// console.log(i) // console.log is very heavy! | |
raf() | |
}else{ |
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
package main | |
import ( | |
"bytes" | |
"fmt" | |
"log" | |
"os/exec" | |
"io" | |
) |
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
#!/usr/bin/env python3 | |
# -*- coding: utf-8 -*- | |
import os | |
import zipfile | |
import rarfile | |
import click | |
@click.group(invoke_without_command=True) | |
@click.argument('target-dir', type=click.Path(exists=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
# /var/lib/boot2docker/に格納するとdocker-machine起動時に実行される | |
ip addr add 172.29.32.2/20 dev eth0 # HostOSと同じサブネット内で固定IPアドレスを設定する | |
uid=1000 # dockerユーザ | |
gid=50 # staffグループ | |
user=share # HostOSで共有を許可したユーザ名 | |
password=xxxxxxxxxxxx # 共有を許可したユーザのパスワード | |
host_ip=//172.29.32.1 # HostOSのIPアドレス |
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
# /var/lib/boot2docker/に格納するとdocker-machine起動時に実行される | |
ip addr add 172.29.32.2/20 dev eth0 # HostOSと同じサブネット内で固定IPアドレスを設定する | |
uid=1000 # dockerユーザ | |
gid=50 # staffグループ | |
user=share # HostOSで共有を許可したユーザ名 | |
password=xxxxxxxxxxxx # 共有を許可したユーザのパスワード | |
host_ip=//172.29.32.1 # HostOSのIPアドレス |
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
reg add "HKEY_CURRENT_USER\Control Panel\Accessibility\Keyboard Response" /v AutoRepeatDelay /d 200 /f | |
reg add "HKEY_CURRENT_USER\Control Panel\Accessibility\Keyboard Response" /v AutoRepeatRate /d 10 /f | |
reg add "HKEY_CURRENT_USER\Control Panel\Accessibility\Keyboard Response" /v BounceTime /d 0 /f | |
reg add "HKEY_CURRENT_USER\Control Panel\Accessibility\Keyboard Response" /v DelayBeforeAcceptance /d 0 /f | |
reg add "HKEY_CURRENT_USER\Control Panel\Accessibility\Keyboard Response" /v Flags /d 59 /f |
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() { | |
RTT.addPlugin("emptyPlugin", { | |
onSendTimeEntry: function(RTT, params) { | |
return console.log("onSendTimeEntry"); | |
}, | |
onSendedTimeEntry: function(RTT, params) { | |
return console.log("onSendedTimeEntry"); |
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 | |
# | |
#################################### | |
# iTunes Command Line Control v1.0 | |
# written by David Schlosnagle | |
# created 2001.11.08 | |
# edit 2010.06.01 rahul kumar | |
#################################### | |
showHelp () { |
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
class FileOperator | |
# constant | |
BACKUP_DIR_NAME = "bak" | |
NO_OVERWRITE = "false" | |
PATH_SEPARATOR = "/" | |
EXTENSION_SEPARATOR = "." | |
REVISION_INIT = 2 | |
# fields |
NewerOlder