(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.
/** | |
* @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++) { |
#!/bin/zsh | |
PWD=`pwd` | |
# Copy config files | |
## Oh my zsh | |
ln -sf $PWD/.zshrc ~/.zshrc | |
## Tmux |
#!/bin/bash | |
VALUE=$(cat /sys/class/leds/smc::kbd_backlight/brightness) | |
INCREMENT=32 | |
TOTAL=unset | |
case $1 in | |
up) | |
TOTAL=`expr $VALUE + $INCREMENT` | |
;; | |
down) |
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 |
echo XHC1 > /proc/acpi/wakeup | |
#echo LID0 >/proc/acpi/wakeup |
(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.
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() |
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}); | |
alter authorization on database::Facturacion to sa |
{ | |
"font_face": "PragmataPro", | |
"font_size": 14.0, | |
"highlight_line": true, | |
"ignored_packages": | |
[ | |
"Vintage" | |
], | |
"theme": "Soda Dark 3.sublime-theme", | |
"soda_folder_icons": true, |