Skip to content

Instantly share code, notes, and snippets.

View lijunle's full-sized avatar

Junle Li lijunle

View GitHub Profile
@lijunle
lijunle / .tmux.conf
Created July 1, 2016 15:59
Tmux configuration
set-option -g base-index 1
set-option -g mode-mouse on
set-option -g mouse-resize-pane on
set-option -g mouse-select-pane on
set-option -g mouse-select-window on
set-option -g default-shell $SHELL
set-window-option -g mode-keys vi
set-window-option -g window-status-current-bg yellow
@lijunle
lijunle / .gitconfig
Last active September 16, 2023 05:36
Various Configs
[user]
name = Junle Li
email = lijunle@gmail.com
[core]
excludesfile = ~/.gitignore
pager = cat
[gc]
auto = 0
[alias]
br = branch -v
@lijunle
lijunle / Tutorial.fsx
Last active October 14, 2022 22:28
This sample will guide you through elements of the F# language.
// This sample will guide you through elements of the F# language.
//
// *******************************************************************************************************
// To execute the code in F# Interactive, highlight a section of code and press Alt-Enter or right-click
// and select "Execute in Interactive". You can open the F# Interactive Window from the "View" menu.
// *******************************************************************************************************
//
// For more about F#, see:
// http://fsharp.org
//
@lijunle
lijunle / .manifest
Created March 20, 2016 12:26
DocFX Example Output
{"Vsxmd":"Vsxmd.yml","Vsxmd.Converter":"Vsxmd.Converter.yml","Vsxmd.Converter.#ctor(XDocument)":"Vsxmd.Converter.yml","Vsxmd.Converter.ToMarkdown(XDocument)":"Vsxmd.Converter.yml","Vsxmd.Converter.ToMarkdown":"Vsxmd.Converter.yml","Vsxmd.IConverter":"Vsxmd.IConverter.yml","Vsxmd.IConverter.ToMarkdown":"Vsxmd.IConverter.yml"}
"atom-beautify":
prettyName: "Atom Beautify"
homepage: "https://github.com/Glavin001/atom-beautify#readme"
"atom-typescript":
prettyName: "Atom Typescript"
homepage: "http://atom.io/packages/atom-typescript"
"language-ts":
prettyName: "Language Ts"
homepage: "https://github.com/wingyplus/language-ts#readme"
"line-ending-converter":
@lijunle
lijunle / index.js
Last active March 11, 2016 09:43
React Cursor Demo
// jsfiddle: https://jsfiddle.net/lijunle/50jx1k2z/2/
let {Cursor} = ReactCursor;
const state1 = {
counters: [
{ id: 1, number: 1 },
{ id: 2, number: 2 },
{ id: 3, number: 3 },
{ id: 4, number: 4 },
@lijunle
lijunle / ESLint-Result.js
Last active September 21, 2015 12:58
ESLint Result
var fs = require('fs');
fs.readFile('./eslint-result.json', {encoding: 'utf-8'}, function (error, data) {
var fileList = JSON.parse(data);
var violations = {};
var total = 0;
fileList.forEach(function (file) {
var filePath = file.filePath;
@lijunle
lijunle / README.md
Last active August 29, 2015 14:17
Readme for Nancy.AttributeRouting.

Nancy.AttributeRouting

Enable attribute routing for Nancy project, and build route URL with compiled-time checked lambda expression.

Install

PM> Install-Package Nancy.AttributeRouting
@lijunle
lijunle / TFS_Without_VS.md
Last active August 10, 2021 18:29
TFS Build Web Application Without Visual Studio

Steps

  1. Copy C:\Program Files (x86)\MSBuild\Microsoft\VisualStudio\v12.0\{Web,WebApplications} folders to build server
  2. Update NuGet to newest version by running C:\Program Files\Microsoft Team Foundation Server 12.0\Tools\nuget.exe update -self
  3. Install .Net Framework 3.5 Runtime from server manager
  4. Install .Net Framework 4.5 Targeting Pack via install from Windows 8 SDK
    • Note 1: DONOT install Windows 8.1 version, which includes .Net Framework 4.5.1 SDK
    • Note 2: You can only download and install .Net Framework 4.5 SDK
  • Note 3: After install .Net Framework SDK, you can uninstall Windows SDK from control panel