Skip to content

Instantly share code, notes, and snippets.

View makotoshimazu's full-sized avatar

Makoto Shimazu makotoshimazu

View GitHub Profile
#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;
#include "foo.h"
constexpr int Foo::kValue;
#!/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
#!/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
on:
workflow_call:
inputs:
deploy_target:
description: 'Deploy target'
required: true
type: string
default: 'production'
secrets:
GH_TOKEN: