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
on: | |
workflow_call: | |
inputs: | |
deploy_target: | |
description: 'Deploy target' | |
required: true | |
type: string | |
default: 'production' | |
secrets: | |
GH_TOKEN: |
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/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 |
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
// C | |
const char* a1 = "https://www.google.com"; | |
const char* a2 = "Hello"; | |
const char* a3 = "bar"; | |
const char* a[3] = {a1, a2, a3}; | |
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/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 |
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
#!/usr/bin/env python | |
# -*- coding: utf-8 -*- | |
# vim: set fileencoding=utf-8 : | |
# | |
# transform.py | |
# | |
# Author: Makoto Shimazu <[email protected]> | |
# URL: https://amiq11.tumblr.com | |
# License: 2-Clause BSD License | |
# Created: 2018-12-24 |
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
#include "foo.h" | |
constexpr int Foo::kValue; |
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
#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; |
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
-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 |
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
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> |
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
#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} |
NewerOlder