node server_body_parser.js
http://localhost:8888
Change the variable port
in the code. 8888
is the default
[rebase] | |
autoStash = true | |
rebaseMerges = true | |
updateRefs = true |
# Command to convert the large Excel to csv. this is based on gnumeric | |
# To install it in Mac could be through `brew install gnumeric` | |
ssconvert -O "sheet=SHEET_NAME" EXCEL_FILENAME.xlsx CSV_FILENAME.csv | |
# Command to split the large csv in chunks of lines through parallel command. | |
# This case is 30K lines each file and each file will be numbered based on the `{#}` addition in the filename | |
# To install parallel in MAC `brew install parallel` | |
cat CSV_FILENAME.csv | parallel --header : --pipe -N30000 'cat > CSV_FILENAME_{#}.csv' |
#GITHUB_ACCESS_TOKEN= | |
GH_OWNER=rew-ca | |
GH_REPO=rewportal | |
SHOW_DOT=true |
The intention of this code is to have some personal persistance and point of view comparing JS objects and arrays mapping some values for its later search.
Recently (2021-09-01) is very common that people try to use a "fancy" way to compound structures when not in all scenarios
could the most performant. Usage of find
, map
, reduce
and is good use them when it merits, but on other cases,
organize the data based on an Object by keys can increase the performance.
Here is another point of view and
CREATE OR REPLACE FUNCTION pg_temp.generate_create_table_statement(p_table_name varchar) | |
RETURNS text AS | |
$BODY$ | |
DECLARE | |
v_table_ddl text; | |
column_record record; | |
BEGIN | |
FOR column_record IN | |
SELECT | |
b.nspname as schema_name, |
ffmpeg installation working in Mac Catalina | |
brew tap varenc/ffmpeg | |
brew tap-pin varenc/ffmpeg | |
brew install ffmpeg $(brew options ffmpeg --compact) | |
ffmpeg -loop 1 -i Lo\ que\ Aprendí.png -c:v libx264 -t 73 -pix_fmt yuv420p -vf scale=1280:720 Lo\ que\ Aprendí.mp4 | |
ffmpeg -i Lo\ que\ Aprendí.mp4 -i Lo\ que\ Aprendí.mp3 Lo\ que\ Aprendí.mkv -c copy |
#!/usr/bin/env bash | |
for i in *.MP4; | |
do name=`echo $i | cut -d'.' -f1`; | |
FILE="small/${name}_small.MP4" | |
if [ -f "$FILE" ]; then | |
echo "$FILE exist" | |
else | |
echo "$FILE does not exist. Creating..." | |
ffmpeg -i "$i" "${FILE}"; |
data_array = [[1,2,[3]],4] | |
def manual_flatten(arr) | |
new_array = [] | |
arr.each do |elm| | |
if elm.kind_of?(Array) | |
new_array.concat(manual_flatten(elm)) | |
else | |
new_array << elm | |
end |