This file contains hidden or 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
# frozen_string_literal: true | |
exit 0 unless ENV['CIRCLECI'] | |
require_relative './github_updater' | |
require_relative './pushover_glue' | |
result = GithubUpdater.run | |
if result.count > 0 |
This file contains hidden or 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
# moved to https://github.com/masutaka/dotfiles-public/blob/master/.tmux.conf |
This file contains hidden or 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
(defun mstk-start-sync () | |
(call-process "sh" nil nil nil "-c" "sleep 3; echo OK") | |
(message-box "mstk-start-sync finished.")) | |
(mstk-start-sync) |
This file contains hidden or 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 | |
# You can get on https://api.slack.com/methods/emoji.list/test | |
endpoint='https://slack.com/api/emoji.list?token=<SECRET>&pretty=1' | |
json=$(curl -s $endpoint) | |
keys=$(echo $json | jq -r '.emoji | keys[]') | |
mkdir -p images |
This file contains hidden or 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
/* Closure sample */ | |
#include <stdio.h> | |
typedef int anyFunc(void); | |
static int doTimes(anyFunc anything, int n); | |
int main(void) | |
{ |
This file contains hidden or 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
// Memorize using closure | |
package main | |
import ( | |
"fmt" | |
"time" | |
) | |
func urlFunc() func() string { |
This file contains hidden or 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
(defun my-lisp-load (filename) | |
"Load lisp from FILENAME" | |
(let ((fullname (expand-file-name (concat "spec/" filename) user-emacs-directory)) | |
lisp) | |
(when (file-readable-p fullname) | |
(with-temp-buffer | |
(progn | |
(insert-file-contents fullname) | |
(setq lisp | |
(condition-case nil |
This file contains hidden or 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 "fmt" | |
// $ go build hoge.go | |
// $ nm -A hoge | grep main | |
func init() { | |
fmt.Println("init() 1st") | |
} |
This file contains hidden or 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 ( | |
"fmt" | |
) | |
func main() { | |
fmt.Printf("main() in test.go\n") | |
new(Test).Hoge() | |
Test2.Hoge() |
This file contains hidden or 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
// parallels processing v1 (broken code) | |
package main | |
import ( | |
"fmt" | |
"runtime" | |
"time" | |
) |