Skip to content

Instantly share code, notes, and snippets.

View nicokosi's full-sized avatar

Nicolas Kosinski nicokosi

View GitHub Profile
@nicokosi
nicokosi / IntelliJ IDEA shortcuts.mkdown
Last active August 29, 2015 13:56
My favourites IntelliJ IDEA shortcuts.

IntelliJ IDEA shortcuts

search action: Ctrl + Shift + A

Navigation: open class by name: Ctrl + N open file by name: Ctrl + Shift + N goto anything: Ctrl + Alt + Shift + N recent files: Ctrl + E switch file: Ctrl + Tab

@nicokosi
nicokosi / Computing for Data Analysis - R lang - notes.tasks
Created January 31, 2014 10:05
Nicolas Kosinski's notes from Coursera course "Computing for Data Analysis" that teaches R basics for statistics: https://www.coursera.org/course/compdata
Nicolas Kosinski's notes from Coursera course "Computing for Data Analysis" that teaches R basics for statistics: https://www.coursera.org/course/compdata (session #4: https://class.coursera.org/compdata-004)
✔ R installation @done (14-01-21 10:59)
✔ Week 1 @done (14-01-22 07:55)
✔ What Makes R Different? (4:20) @done (14-01-21 12:08)
R mixes:
interactive (command-oriented) tool
programming lang
✔ How to Get Help (13:53) @done (14-01-21 12:37)
✔ Background and Overview (16:38) @done (14-01-21 15:39)
@nicokosi
nicokosi / clojure-nightclazz.clj
Last active December 30, 2015 11:09
Code from Zenika session for Clojure beginners ("NightClazz" session, 2013/12/05). This is just a backup, see repo https://github.com/nicokosi/clojure-nightclazz.
(ns nightclazz.gameOfLife
(:require [quil.core :as q]))
;; generation:
(def world (atom
#{[0 1] [1 2] [1 1] [1 3]}))
(defn setup []
(q/smooth)
(q/background 30))
@nicokosi
nicokosi / debian-package-mgt.sh
Last active October 13, 2016 11:15
Cheat sheet for Debian Linux package management
# install '.deb' package (local file)
dpkg -i my-package
# list installed packages
dpkg-query -W
# list installed ('ii' marker) and not installed ('un') packages
dpkg -l
# list available packages
@nicokosi
nicokosi / DummyFileGenerator.groovy
Last active December 16, 2015 22:49
Groovy script that generates a text file
out = new File("C:/tmp/output.txt")
out.write "-- Dummy file header\n"
for (index in 1..5) {
out.append "line${index}\n"
}
println "Generated file ${out}."
@nicokosi
nicokosi / memo.sh
Last active September 22, 2016 03:20
Basic Unix commands
# File basics:
############################
# list files, sorted by update date (recent last)
ls -rclt
# list files, sorted by update date (recent first)
ls -clt
# (recursive) folder sizes
du -h -d1 # human-readable sizes + dir depth of 1
(defn lazy-inc [x]
(lazy-seq
(print ".")
(cons x (lazy-inc (inc x)))))
(print "\n take 2: ")
(take 2
(lazy-inc 1))
(print "\n first: ")