Skip to content

Instantly share code, notes, and snippets.

View typester's full-sized avatar
😇

Daisuke Murase typester

😇
View GitHub Profile
@typester
typester / main.rs
Created December 3, 2023 13:59
2023 Advent of Code Day 1
const INPUT: &str = "...snip...";
fn main() {
// part1
let sum: u32 = INPUT.lines()
.map(extract_digit)
.sum();
println!("part1 sum: {}", sum);
// part2
@typester
typester / hhkb.sh
Created October 14, 2019 18:21
my hhkb settings
#!/bin/sh
set -e
# reset
pkill xcape | echo -n
setxkbmap -layout us
# SandS
xmodmap -e 'keycode 255=space'
We can make this file beautiful and searchable if this error is corrected: Unclosed quoted field in line 8.
word,body
"(笑)","インターネット上級者(笑)は皮肉を込めて「(笑)」を使う場合が多い。"
(E),"カッコイイ!
ナウなヤングにバカウケ!"
2005-11-03,"敬老の日(違います)"
941,"id:kushii さんのこと。"
"941伝説","941さんがいると自重しない人も自重する。"
Acme,"素晴らしいAcmeモジュールを作ることがCPAN authorの目標にもなっているPerlの代表的なモジュール群。
<a href=""http://www.donzoko.net/cgi-bin/tdiary/"">どんぞこ日誌</a>に自分の作ったAcmeモジュールが載ることは、CPAN authorとして最も栄誉な事である。"
Ajax,"読み:あじゃっくす

Keybase proof

I hereby claim:

  • I am typester on github.
  • I am typester (https://keybase.io/typester) on keybase.
  • I have a public key ASA6bXeW2zrW2HwYtmcfpWKzstiHY5cBO10wOOGdBVIwUwo

To claim this, I am signing this object:

diff --git a/tmk_core/common/action_tapping.c b/tmk_core/common/action_tapping.c
index 531a3ca34..0f3596f59 100644
--- a/tmk_core/common/action_tapping.c
+++ b/tmk_core/common/action_tapping.c
@@ -149,7 +149,8 @@ bool process_tapping(keyrecord_t *keyp)
debug("Tapping: Tap release("); debug_dec(tapping_key.tap.count); debug(")\n");
keyp->tap = tapping_key.tap;
process_record(keyp);
- tapping_key = *keyp;
+ /* always reset tap timer when tap release */
- name: install gems
gem: executable=/opt/sensu/embedded/bin/gem name={{ item }} state=present user_install=no
sudo: yes
with_items:
- influxdb
- influxdb-cli
- mysql2
- rb-readline
import Foundation
class HTTP {
class Request {
enum Method: String {
case GET = "GET"
case HEAD = "HEAD"
case POST = "POST"
case PUT = "PUT"
---
# restrict domain. optional
domain: gmail.com
# document root for static files
htdocs: ./
proxy:
- path: /influxdb
dest: http://127.0.0.1:8086
#!/bin/sh
PATH=$HOME/homebrew/bin:$PATH
if [ -n "$TMUX" ]; then
echo "already in tmux session!!"
exit
fi
HELPER_RUNNING=$(ps aux | grep "[u]im-tmux-helper" 2>/dev/null)
atom.workspaceView.command "me:newline-and-indent", ->
editor = atom.workspace.getActiveEditor()
editor.insertNewline()
editor.autoIndentSelectedRows()