This gist and its comments contains some topics for technology section of data weekly
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
# This file provide two pandoc filters for html and pdf output | |
module Nanoc::Filters | |
class PandocHtml < Nanoc::Filter | |
identifier :pandoc_html | |
type :text => :text | |
def run(content, params = {}) | |
input_format = case item[:extension] |
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 Data.List | |
perm :: (Eq a) => [a] -> Int -> [[a]] | |
perm _ 0 = [[]] | |
perm xs r | length xs < r = [[]] | |
| otherwise = [x:ys | x <- xs, ys <- perm (delete x xs) (r - 1)] |
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
%% socket examples from Joe Armstrong's "Programming Erlang, Second Edition". | |
-module(socket_examples). | |
-compile(export_all). | |
-import(lists, [reverse/1]). | |
string2value(Str) -> | |
{ok, Tokens, _} = erl_scan:string(Str ++ "."), | |
{ok, Exprs} = erl_parse:parse_exprs(Tokens), | |
Bindings = erl_eval:new_bindings(), | |
{value, Value, _} = erl_eval:exprs(Exprs, Bindings), |
This is a demo solution for exercise 10.1-1 of the famous CLRS’s Introduction to Algorithms, 3rd Edition book.
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
@font-face { | |
font-family: 'Linux Libertine'; /* normal */ | |
src: url('/static/fonts/linux-libertine/LinLibertine_R.woff') format('woff'); | |
font-weight: normal; | |
font-style: normal; | |
} | |
@font-face { | |
font-family: 'Linux Libertine'; /* italic */ | |
src: url('/static/fonts/linux-libertine/LinLibertine_RI.woff') format('woff'); |
OlderNewer