Skip to content

Instantly share code, notes, and snippets.

Nil-Zil

Block or report user

Report or block Nil-Zil

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@Nil-Zil
Nil-Zil / gist:223e5e618a3dd5d0df24
Created Nov 2, 2015 — forked from saetia/gist:1623487
Clean Install – OS X 10.11 El Capitan
View gist:223e5e618a3dd5d0df24

OS X Preferences


most of these require logout/restart to take effect

# Enable character repeat on keydown
defaults write -g ApplePressAndHoldEnabled -bool false

# Set a shorter Delay until key repeat
@Nil-Zil
Nil-Zil / fit_for_somebody.nb
Last active Aug 11, 2016
类似吸收光谱的吸收峰
View fit_for_somebody.nb
ClearAll["Global`*"];
dataNoOutlier = {{0.100790000000000,
133.050000000000}, {0.102310000000000,
129.050000000000}, {0.103850000000000,
125.500000000000}, {0.105410000000000,
122.530000000000}, {0.107000000000000,
121.100000000000}, {0.115290000000000,
105.700000000000}, {0.117020000000000,
99.9060000000000}, {0.118780000000000,
95.8610000000000}, {0.120570000000000,
View Installing PETSc on OSX Yosemite.md
@Nil-Zil
Nil-Zil / bs.nb
Created Mar 26, 2017
band structure & rcollyer's function
View bs.nb
ClearAll["Global`*"]
v[eta_, {i_, j_}] :=
Switch[eta, 0, {i, j}, 1, {i, j - 1}, 2, {i - 1, j}]
V[i_, j_] :=
1/2 gammaSigma Sum[(-Cos[2 Pi/3 eta] u[{i, j}, {A, x}] -
Sin[2 Pi/3 eta] u[{i, j}, {A, y}] +
Cos[2 Pi/3 eta] u[v[eta, {i, j}], {B, x}] +
Sin[2 Pi/3 eta] u[v[eta, {i, j}], {B, y}])^2, {eta, 0, 2,
@Nil-Zil
Nil-Zil / college_ruled.tex
Last active Mar 27, 2017
College ruled notebook paper
View college_ruled.tex
\documentclass{article}
\usepackage{tikz}
\usepackage{pagecolor}
\usepackage[paperwidth=14.23in,paperheight=18.09in]{geometry}
\definecolor{h}{rgb}{0.8,0.85,0.77}
\definecolor{bg}{rgb}{0.99,0.97,0.81}
\definecolor{v}{rgb}{0.91,0.74,0.65}
\begin{document}
@Nil-Zil
Nil-Zil / nil.txsprofile
Created Apr 11, 2017
My TeXStudio profile
View nil.txsprofile
[General]
IniMode=true
[formats]
data\align-ampersand\bold=true
data\align-ampersand\fontFamily=
data\align-ampersand\foreground=#37c0ff
data\align-ampersand\italic=false
data\align-ampersand\overline=false
data\align-ampersand\pointSize=0
View ruled_top_blank
\documentclass{article}
\usepackage{tikz}
\usepackage{pagecolor}
\usepackage[paperwidth=14.23in,paperheight=18.09in]{geometry}
\definecolor{h}{rgb}{0.8,0.85,0.77}
\definecolor{bg}{rgb}{0.99,0.97,0.81}
\begin{document}
\pagestyle{empty}
View smaller_ruled_top_blank
\documentclass{article}
\usepackage{tikz}
\usepackage{pagecolor}
\usepackage[paperwidth=8.27in,paperheight=11.7in]{geometry}
\definecolor{h}{rgb}{0.8,0.85,0.77}
\definecolor{bg}{rgb}{0.99,0.97,0.81}
\begin{document}
\pagestyle{empty}
@Nil-Zil
Nil-Zil / cask_upgrade.sh
Created May 27, 2017 — forked from atais/cask_upgrade.sh
Script upgrading outdated brew casks
View cask_upgrade.sh
#!/usr/bin/env bash
(set -x; brew update;)
(set -x; brew cleanup;)
(set -x; brew cask cleanup;)
red=`tput setaf 1`
green=`tput setaf 2`
reset=`tput sgr0`
@Nil-Zil
Nil-Zil / npm-upgrade-bleeding.sh
Created May 27, 2017 — forked from othiym23/npm-upgrade-bleeding.sh
a safe way to upgrade all of your globally-installed npm packages
View npm-upgrade-bleeding.sh
#!/bin/sh
set -e
set -x
for package in $(npm -g outdated --parseable --depth=0 | cut -d: -f3)
do
npm -g install "$package"
done
You can’t perform that action at this time.