Skip to content

Instantly share code, notes, and snippets.

View makotoshimazu's full-sized avatar

Makoto Shimazu makotoshimazu

View GitHub Profile
on:
workflow_call:
inputs:
deploy_target:
description: 'Deploy target'
required: true
type: string
default: 'production'
secrets:
GH_TOKEN:
#!/bin/zsh
autoload -Uz colors
colors
echo " hash | branch"
echo "--------+----------------------"
git branch -vv | grep gone | sed -E 's/ +/ /g' | cut -d ' ' -f 2,3 |
while read branch_name rev
do
// C
const char* a1 = "https://www.google.com";
const char* a2 = "Hello";
const char* a3 = "bar";
const char* a[3] = {a1, a2, a3};
#!/bin/zsh
autoload -Uz colors
colors
echo " hash | branch"
echo "--------+----------------------"
git branch -vv | grep gone | sed -E 's/ +/ /g' | cut -d ' ' -f 2,3 |
while read branch_name rev
do
#!/usr/bin/env python
# -*- coding: utf-8 -*-
# vim: set fileencoding=utf-8 :
#
# transform.py
#
# Author: Makoto Shimazu <makoto.shimaz@gmail.com>
# URL: https://amiq11.tumblr.com
# License: 2-Clause BSD License
# Created: 2018-12-24
#include "foo.h"
constexpr int Foo::kValue;
#include <cassert>
#include <cstdio>
#include <string>
#include <sys/time.h>
#define check(f) assert(f == cudaSuccess)
constexpr int N = 1024 * 1024 * 1024;
constexpr int STRIDE = 1024;
@makotoshimazu
makotoshimazu / .clang-complete
Last active July 14, 2018 23:59
For completion of Arduino sketches
-std=gnu++11
-I/PATH/TO/ARDUINO/arduino-1.8.5/hardware/arduino/avr/cores/arduino/
-I/PATH/TO/ARDUINO/arduino-1.8.5/hardware/tools/avr/avr/include
-I/PATH/TO/ARDUINO/arduino-1.8.5/hardware/arduino/avr/libraries/
-I/PATH/TO/ARDUINO/arduino-1.8.5/hardware/arduino/avr/libraries/EEPROM/src
-I/PATH/TO/ARDUINO/arduino-1.8.5/hardware/arduino/avr/libraries/HID/src
-I/PATH/TO/ARDUINO/arduino-1.8.5/hardware/arduino/avr/libraries/SPI/src
-I/PATH/TO/ARDUINO/arduino-1.8.5/hardware/arduino/avr/libraries/SoftwareSerial/src
-I/PATH/TO/ARDUINO/hardware/arduino/avr/libraries/Wire/src
-include /PATH/TO/ARDUINO/hardware/arduino/avr/cores/arduino/Arduino.h
namespace {
extern "C" {
#include <linux/sched.h>
#include <linux/kernel.h>
#include <unistd.h>
#include <sys/syscall.h>
#include <linux/types.h>
#include <sched.h>
#IfWinActive, ahk_class ConsoleWindowClass
^a::SendInput {HOME}
^e::SendInput {END}
^u::SendInput {ESC}
^p::SendInput {Up}
^n::SendInput {Down}
^l::SendInput {ESC}cls{ENTER}
^f::SendInput {right}
^b::SendInput {left}
^h::SendInput {BS}