- install xcape
- run:
xcape -e 'Shift_L=Escape;Control_L=Control_L|G;Caps_Lock=Control_L|G'
Holding SHIFT/CTRL/CAPS keys will work as usual, simple press will work as ESC(Shift)/CTRL+G(ctrl/caps)
xcape -e 'Shift_L=Escape;Control_L=Control_L|G;Caps_Lock=Control_L|G'
Holding SHIFT/CTRL/CAPS keys will work as usual, simple press will work as ESC(Shift)/CTRL+G(ctrl/caps)
var result = | |
Array.prototype.slice.call(document.querySelectorAll('.semester .data')). | |
map(function(t) { | |
var td = t.querySelectorAll('td'); | |
return[t.querySelector('[data-title="nazwaKursu"]').innerText, | |
parseFloat(t.querySelector('[title="ocena"]').innerText, 10), | |
parseFloat(td[td.length -1 ].innerText, 10) | |
]; | |
}).reduce(function(r, t) { | |
return [r[0] + (t[1] * t[2]), r[1] + t[2]] |
(ns rdp.core) | |
; Ramer-Douglas-Peucker algorithm based on http://en.wikipedia.org/wiki/Ramer-Douglas-Peucker_algorithm | |
(defn- dist [point start end] | |
(let [num (- (* (- (first end) (first start)) | |
(- (last start) (last point))) | |
(* (- (first start) (first point)) | |
(- (last end) (last start)))) |
This list is meant to be a both a quick guide and reference for further research into these topics. It's basically a summary of that comp sci course you never took or forgot about, so there's no way it can cover everything in depth. It also will be available as a gist on Github for everyone to edit and add to.
###Array ####Definition:
#/bin/bash | |
echo 'alias g=git' >> ~/.zshrc | |
g config --global alias.ca 'commit --amend --reuse-message=HEAD' | |
g config --global alias.ci commit | |
g config --global alias.cp cherry-pick | |
g config --global alias.cl clone | |
g config --global alias.co checkout | |
g config --global alias.f fetch | |
g config --global alias.b branch | |
g config --global alias.s status |
(ns xxx.components.progress-bar | |
(:require [re-frame.core :refer [subscribe dispatch]])) | |
(def COLOR "rgb(178, 34, 34)") | |
(def VISIBLE-STYLE {:height 2 :opacity 1 :color COLOR :background-color COLOR }) | |
(def PRGORESS-BAR-CONTAINER-STYLE {:position "fixed" | |
:margin 0 | |
:padding 0 | |
:top 0 | |
:left 0 |
(let [plot (histogram (sample-normal 20)) | |
render (-> plot .getPlot .getRenderer)] | |
(add-histogram plot (sample-normal 20)) | |
; changes color of the outline | |
(.setSeriesOutlinePaint render 1 java.awt.Color/BLUE) | |
; does nothing, fill paint remains unchanged. ??????? | |
(.setSeriesFillPaint render 1 java.awt.Color/BLUE) | |
(view plot)) |
words/**/*.acn | |
words/**/*.acr | |
words/**/*.alg | |
words/**/*.aux | |
words/**/*.backup | |
words/**/*.bbl | |
words/**/*.bcf | |
words/**/*.blg | |
words/**/*.brf | |
words/**/*.dvi |