$ erlc zt.erl
$ erlc -pa . z.erl
z.erl:none: internal error in lint_module;
crash reason: {badarg,[{erl_scan,set_attr,
[line,function,#Fun<erl_lint.9.103090672>],
[{file,"erl_scan.erl"},{line,418}]},
{erl_lint,modify_line1,2,
[{file,"erl_lint.erl"},{line,3352}]},
{erl_lint,eval_file_attr,2,
This file contains 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
# Authenticate users against a htpasswd file. | |
# | |
# This source file should be put under the app/models/ directory. | |
# | |
# Add | |
# gem 'htauth' | |
# to the Gemfile.local file and run | |
# bundle install --without development test | |
# again. | |
# |
This file contains 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
TARGET = my_program.exe | |
RM = rm -f | |
CXX = g++ | |
CXXFLAGS = -std=c++11 -m64 -g -I"." -I".." -I"${BOOST_ROOT}" -I"${MYSQL_ROOT}/include" -I"${PROTOBUF_ROOT}/include" | |
LDFLAGS = -L"${BOOST_ROOT}/stage/lib" -L"${MYSQL_ROOT}/lib" -L"${PROTOBUF_ROOT}/lib" | |
LDLIBS = -lboost_system -lmysqlclient -lprotobuf | |
SRCS = $(wildcard *.cpp ../common/*.cc) | |
OBJS = $(subst .cc,.o,$(subst .cpp,.o,$(SRCS))) |
This file contains 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
Möhren carrots | |
Gurken cucumbers | |
Apfel apple | |
rot red | |
Joghurt yoghurt | |
Nuss nut | |
Eier eggs | |
Freilandeier free-range eggs (produced from birds that are permitted outdoors for at least part of the day) | |
Frischmilch fresh milk |
This file contains 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
\documentclass{book} | |
\usepackage{amsmath} | |
\usepackage{fontspec} | |
\usepackage{xunicode} | |
\usepackage{indentfirst} | |
%% XeTeX adds code when switching latin (0) or boundary (255) to CJK (1, 2, 3) | |
\XeTeXinterchartokenstate = 1 | |
%% Fonts for Latin and CJK |
This file contains 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
import re | |
import urllib2 | |
def get(url): | |
return urllib2.urlopen(url).read() | |
def search_author(name): | |
name = re.sub(r'\s+', '+', name) | |
page = get('http://scholar.google.com/citations?view_op=search_authors&mauthors=' + name) | |
m = re.search(r'(?<=/citations\?user=)\w+', page) |
This file contains 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
import java.util.Iterator; | |
import com.google.common.collect.AbstractIterator; | |
/* | |
i = 1; | |
j = n - 2; | |
while (i <= j) { | |
e1 = Main.exprOfSize(i); | |
while (e1.hasNext()) { |
This file contains 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
k = 0 | |
j = 1 | |
m = 1 | |
while m <= n | |
k = k + 1 | |
j = j + 2 | |
m = m + j | |
end | |
# the answer is in k |
This file contains 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
$ sml | |
Standard ML of New Jersey v110.67 [built: Wed Apr 10 22:39:58 2013] | |
- use "sigtest.sml"; | |
[opening sigtest.sml] | |
[autoloading] | |
[library $SMLNJ-BASIS/basis.cm is stable] | |
[autoloading done] | |
signature MYLIST = | |
sig | |
type 'a T |
This file contains 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
-module(tcbenchnb). | |
-export([start/2, init/2, thread/1]). | |
start(Total_Rounds, Step) -> | |
spawn(?MODULE, init, [Total_Rounds, Step]). | |
init(Total_Rounds, Step) -> | |
Start_Time = os:timestamp(), | |
create_threads(0, 0, Total_Rounds, Step, Start_Time). |
NewerOlder