Skip to content

Instantly share code, notes, and snippets.

View lijunle's full-sized avatar

Junle Li lijunle

View GitHub Profile

自我介绍

  • 黎俊乐
  • 曾获奖项
    • 2011年ACM-ICPC亚洲区域赛银奖
    • 2012年广东省大学生程序设计竞赛二等奖
    • 2011年第四届珠海市“金山杯”大学生程序设计挑战赛二等奖
    • ……
  • 奖学金
@lijunle
lijunle / gst.sh
Created September 24, 2012 17:58
translate English into Chinese using Google Translate.
#/bin/bash
translate() {
WORD=`echo $1 | sed -e 's/[[:space:]]/%20/g'`
URL="http://translate.google.cn/translate_a/t?client=t&text={$WORD}\
&hl=en&sl=en&tl=zh-CN&ie=UTF-8&oe=UTF-8&multires=1&otf=2\
&ssel=0&tsel=0&sc=1"
AGENT="Mozilla/5.0"
RESULT=`curl -s -A $AGENT $URL`
@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
@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 / 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 / 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 },
"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 / .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"}
@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
//