2020-10-10-name.markdown
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# Copyright © 2017 Google Inc. | |
# Licensed under the Apache License, Version 2.0 (the "License"); | |
# you may not use this file except in compliance with the License. | |
# You may obtain a copy of the License at | |
# | |
# http://www.apache.org/licenses/LICENSE-2.0 | |
# | |
# Unless required by applicable law or agreed to in writing, software |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# This script is used to bulk insert ignore statements to django migration files. | |
# It can be handy after squashing migration files. | |
# Place this file at the root of the project directory when use. | |
# | |
# Example usage: | |
# python manage.py lintmigrations --exclude-apps foobar | grep ERR | python fix_ignores.py | |
import glob | |
import sys |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
cmake -Bbuild -H. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
\chap{SIKS Dissertations} | |
\pagestyle{plain} | |
\newcommand{\SIKSdiss}[3]{{\bf #1}\hspace*{1ex}#2, {\it #3.}\\} | |
\section*{2009} | |
\SIKSdiss{2009-01}{Rasa Jurgelenaite (RUN)}{Symmetric Causal Independence Models} | |
\SIKSdiss{2009-02}{Willem Robert van Hage (VU)}{Evaluating Ontology-Alignment Techniques} | |
\SIKSdiss{2009-03}{Hans Stol (UvT)}{A Framework for Evidence-based Policy Making Using IT} | |
\SIKSdiss{2009-04}{Josephine Nabukenya (RUN)}{Improving the Quality of Organisational Policy Making using Collaboration Engineering} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
choco install tortoisesvn notepadplusplus 7zip ccleaner putty vim |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
def computePR(graph, oldPR): | |
newPR = {} | |
N = len(graph) | |
for node in graph: | |
pr = 0 | |
for pred in graph[node][0]: | |
if len(graph[pred][1]) != 0: | |
pr += (oldPR[pred]+0.0)/len(graph[pred][1]) | |
pr = 0.15 / N + 0.85 * pr | |
newPR[node] = pr |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
\begin{algorithm2e}[htbp] | |
\SetKwFor{ForEach}{for each}{do}{endfch}%separate foreach with a space | |
\SetArgSty{textrm} %do not automatically use italic in arguments | |
\SetKwFunction{Map}{Map} | |
\SetKwFunction{Reduce}{Reduce} | |
\SetKwProg{myproc}{Procedure}{}{} | |
\DontPrintSemicolon % Some LaTeX compilers require you to use \dontprintsemicolon instead | |
\KwIn{} | |
\KwOut{} | |
\myproc{\Map{[(key, value)]}}{ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//convert file name | |
convmv -f gbk -t utf8 -r . | |
//convert file content | |
iconv -f gbk -t utf8 file.txt -o output.txt |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
\def\arraystretch{1.5} | |
\begin{tabular}{lll} | |
\toprule | |
\midrule | |
\bottomrule | |
\end{tabular} |
NewerOlder