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
| var validator = $( "#myshowErrors" ).validate(); | |
| validator.showErrors({ | |
| "firstname": "I know that your firstname is Pete, Pete!" | |
| }); |
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
| #!/usr/bin/env fish | |
| set freqs (cat /sys/devices/system/cpu/cpu*/cpufreq/scaling_cur_freq) | |
| # printf "🔳🔲" | |
| for freq in $freqs | |
| if [ $freq -gt 1000000 ] | |
| printf '🔲%.*f' 2 (math "$freq / 1000000") | |
| else | |
| printf '🔳%.*f' 2 (math "$freq / 1000000") |
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
| #!/usr/bin/fish | |
| echo Please focus to window to scroll in next 10 seconds... | |
| sleep 10 | |
| set stitle (xdotool getwindowfocus getwindowname) | |
| echo now scrolling "$stitle" | |
| while true | |
| set title (xdotool getwindowfocus getwindowname) | |
| if [ "$title" = "$stitle" ] |
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
| # https://www.codewars.com/kata/simplifying/train/python | |
| import re | |
| from functools import reduce | |
| def parse(formulaString): | |
| """ Parse a string and return formula as a map var->factor """ | |
| def stateFunc(state, token): | |
| if token == "-": | |
| state['sign'] = -state['sign'] | |
| elif token == "(": |
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
| ;;; my-node -- Node js development | |
| ;;; Commentary: | |
| ;;; Code: | |
| ;; get indium | |
| ;;(get-cabage "yasnippet" "https://github.com/joaotavora/yasnippet.git") | |
| ;;(get-cabage "multiple-cursors" "https://github.com/magnars/multiple-cursors.el.git") | |
| ;;(get-cabage "js2-refactor" "https://github.com/magnars/js2-refactor.el.git") | |
| ;;(get-cabage "indium" "https://github.com/NicolasPetton/Indium.git") |
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
| SICP - 1.1 The Elements of Programming | |
| In programming, we deal with two kinds of elements: procedures and data. (Later we will discover that they are really not so | |
| distinct.) Informally, data is ‘‘stuff’’ that we want to manipulate, and procedures are descriptions of the rules for manipulating | |
| the data. Thus, any powerful programming language should be able to describe primitive data and primitive procedures and should | |
| have methods for combining and abstracting procedures and data. | |
| ----------------------------------------------------------------------------------------------------------------------------------- | |
| SICP - 1.1.7 Example: Square Roots by Newton’s Method | |
| The contrast between function and procedure is a reflection of the general distinction between describing properties of things |
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
| @namespace url(http://www.w3.org/1999/xhtml); | |
| @-moz-document domain(reddit.com) { | |
| body { | |
| font-family: 'Josefin Slab', sans-serif !important; | |
| /* text-transform: uppercase !important; */ | |
| } | |
| #sr-header-area { | |
| background-color: #ffa000 !important; | |
| } |
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
| v[^^]v m[..]m o['']b o[**]P o[--]o |
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
| +--+--+--+--+--+--+--+--+--+--+ | |
| | | | | | | | |
| + < < < < + | |
| | | | | | | | |
| +--v--+--+--+--+--+--+--+--^--+ | |
| | | | | | | | |
| + + > > + + | |
| | | | | | | | |
| +--v--+--^--+--+--+--v--+--^--+ | |
| | | | | | | |
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
| -XXaltjvm=dcevm -javaagent:D:\RECYCLER\dcevm\hotswap-agent.jar | |
| -server | |
| -Xverify:none | |
| -XX:+UseG1GC | |
| -XX:MinHeapFreeRatio=15 | |
| -XX:MaxHeapFreeRatio=25 | |
| -Xms8m | |
| -Xmx512m |
NewerOlder