Skip to content

Instantly share code, notes, and snippets.

View nodakai's full-sized avatar

NODA Kai nodakai

View GitHub Profile
#!/bin/sh
rpm -q --qf "$(rpm --querytags | while read line; do echo "$line: %{$line}"; done)" -p $1
<p>Bye</p>
# /tmp/nodakai/cm01$ ls -R
# .:
# CMakeLists.txt app/ libsrc/
#
# ./app:
# bow/ wow/
#
# ./app/bow:
# bow.cpp
#
#include <iostream>
#include <vector>
#include <vector>
using namespace std;
void pushAll(std::vector<char> &sec, char begin, char end) {
for (char x = begin; x <= end; ++x)
sec.push_back(x);
}
#!/bin/sh
RSYNC() {
echo rsync -av "$@"
local i
for i in "$@"; do
echo "[$i]"
done
}
#[repr(i64)]
enum E0 {
A = 18446744073709551615,
B = 18446744073709551614
}
/*
#[repr(i8)]
enum E1 {
A = 256,
fn main() {
mod x {
#[cfg(target_pointer_width = "64")]
const X: i32 = 0;
#[allow(dead_code)]
const Y: i32 = X+0;
}
}
trait Into_<T> {
fn into(self) -> T;
}
impl Into_<i32> for i8 {
fn into(self) -> i32 { self as i32 }
}
impl Into_<i32> for bool {
fn into(self) -> i32 { self as i32 }
library(stringi)
library(data.table)
library(ggplot2)
library(scales)
Sys.setlocale(category="LC_TIME", "en_US.UTF-8") # strptime
STRPTIME <- "%a %b %d %H:%M:%S EST %Y"
ARGS <- commandArgs(trail = TRUE)
.PHONY: all clean force
all : app
app : aux.o main.o
$(CC) -o $@ $^
VPATH=a/aux
aux.o : aux.c