(by @andrestaltz)
If you prefer to watch video tutorials with live-coding, then check out this series I recorded with the same contents as in this article: Egghead.io - Introduction to Reactive Programming.
| alter authorization on database::Facturacion to sa |
| public void main (String args[]){ | |
| int z [] = {1,2,3,4}; | |
| ArrayList b = new ArrayList(); | |
| List <Integer> a= new ArrayList<>(); | |
| ArrayList <String> r = new ArrayList<>(); | |
| print(new int []{1,2,3}); | |
| from p in context.Periods | |
| join f in context.Facts | |
| on new { | |
| id = p.periodid, | |
| p.otherid | |
| } equals new { | |
| f.id, | |
| f.otherid | |
| } into fg | |
| from fgi in fg.DefaultIfEmpty() |
(by @andrestaltz)
If you prefer to watch video tutorials with live-coding, then check out this series I recorded with the same contents as in this article: Egghead.io - Introduction to Reactive Programming.
| echo XHC1 > /proc/acpi/wakeup | |
| #echo LID0 >/proc/acpi/wakeup |
| keycode 131 = Mode_switch | |
| keysym j = j J Left | |
| keysym l = l L Right | |
| keysym i = i I Up | |
| keysym k = k K Down | |
| #reset: setxkbmap -option |
| #!/bin/bash | |
| VALUE=$(cat /sys/class/leds/smc::kbd_backlight/brightness) | |
| INCREMENT=32 | |
| TOTAL=unset | |
| case $1 in | |
| up) | |
| TOTAL=`expr $VALUE + $INCREMENT` | |
| ;; | |
| down) |
| #!/bin/zsh | |
| PWD=`pwd` | |
| # Copy config files | |
| ## Oh my zsh | |
| ln -sf $PWD/.zshrc ~/.zshrc | |
| ## Tmux |
| /** | |
| * @author SergioGeeK7 | |
| * @param {Array} arr array to flatten | |
| * @return {Array} flatten array. | |
| * @example [[1,2,[3]],4] -> [1,2,3,4] , [[1,2,[3],[4]],5] -> [1,2,3,4,5]. | |
| */ | |
| function flattenArray(arr) { | |
| let flat = []; | |
| const length = arr.length; | |
| for (let i = 0; i < length; i++) { |
| 32 * 20 / 100 = 6.4 === 6.4 * 100 / 32 | |
| 32 * 90 / 100 = 28.8 === 28.8 * 100 / 32 |