Skip to content

Instantly share code, notes, and snippets.

View saki7's full-sized avatar

Nana Sakisaka saki7

  • Tokyo, Japan
View GitHub Profile
@saki7
saki7 / Relight.cs
Created April 27, 2018 10:46 — forked from ronyx69/Relight.cs
Source code for Relight mod. Rebalanced and customizable lighting and tonemapping. UI / saving and preset system by Simon Royer.
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using ICities;
using UnityEngine;
using System.Reflection;
using System.Runtime.InteropServices;
using System.Threading;
using System.Xml.Serialization;
@saki7
saki7 / crypt_unlock.sh
Created July 7, 2017 14:12 — forked from gusennan/crypt_unlock.sh
initramfs-hook for unlocking LUKS-encrypted LVM partition
#!/bin/sh
PREREQ="dropbear"
prereqs() {
echo "$PREREQ"
}
case "$1" in
prereqs)
@saki7
saki7 / gist:4054780
Created November 11, 2012 12:32
<C-g> git blame
function! s:git_commit_count_from_hash(filename,hash) "{{{
let lines = split(system(printf('git log --pretty=oneline %s'
\ ,a:filename)),"\n")
if len(lines) > 0
let commit_count = 0
for line in lines
let commit_count += 1
let line_split = split(line,' ')
let dict = {