Textual version of the JavaScript roadmap roadmap.sh/javascript
- Introduction to JavaScript
- What is JavaScript?
- History of JavaScript
- JavaScript Versions
- How to Run JavaScript
- All about Variables
- Rules for naming variables
- Variable Declarations
#!/bin/bash | |
# https://github.com/KarsMulder/evsieve | |
if [[ ! -z "$1" ]]; then | |
if [[ "${1:0:4}" == "pci-" || "${1:0:9}" == "platform-" ]]; then | |
input="/dev/input/by-path/$1" | |
else | |
input="/dev/input/by-id/$1" | |
fi | |
elif [[ -e "/dev/input/by-id/usb-04d9_USB-HID_Keyboard_000000000407-event-kbd" ]]; then | |
input="/dev/input/by-id/usb-04d9_USB-HID_Keyboard_000000000407-event-kbd" |
""" | |
Upscale: Star Trek Deep Space Nine | |
Source: PAL DVD | |
AI Model: Topaz Video AI 3.4, Iris V1 | |
""" | |
import sys | |
import subprocess | |
from pathlib import Path |
Textual version of the JavaScript roadmap roadmap.sh/javascript
Picking the right architecture = Picking the right battles + Managing trade-offs
# ==================================================================== | |
# Create isobaths and smoothed isobaths based on Etopo1 data | |
# https://maps.ngdc.noaa.gov/viewers/wcs-client/ | |
# author: Antônio Olinto Ávila da Silva | |
# creation: 2018-08-27 | |
# last edition: 2018-08-27 | |
# ==================================================================== | |
# workspace | |
# ---------- |
[[snippets]] | |
description = "start dev file syncer. uses fswatch to know when to run rsync. does not sync .git file. Sort like a write-through cache network file system with only eventual consistency guarantees." | |
command = "fswatch -0 --exclude \"\\.git\" --exclude \"\\.xml\" --exclude \"___\" -o /Users/chris/Documents/workspace/lingt_chris_dev_rsync_checkout/myproject | xargs -0 -n 1 -I {} rsync --progress --exclude '*.pyc' --exclude '*.git' --recursive ~/workspace/lingt_chris_dev_rsync_checkout/myproject dev@dev.server:/home/user/webapps/dev_chris/myproject" | |
output = "" | |
[[snippets]] | |
description = "plex find unscanned tv!" | |
command = "cat <(find /Users/chris/Downloads/media/dbx_mount/tv -type f | sed 's/.*\\///' | grep 'mp4\\|mkv\\|avi') <(unbuffer /Applications/Plex\\ Media\\ Server.app/Contents/MacOS/Plex\\ Media\\ Scanner -c 4 --tree | grep 'mp4\\|mkv\\|avi' | sed 's/.*\\///' | sed 's/\\w*\\[.*\\]$//' | awk '{$1=$1};1') | sort | uniq -u" | |
output = "" |
// Copyright (c) 2021 Advanced Micro Devices, Inc. All rights reserved. | |
// | |
// Permission is hereby granted, free of charge, to any person obtaining a copy | |
// of this software and associated documentation files (the "Software"), to deal | |
// in the Software without restriction, including without limitation the rights | |
// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell | |
// copies of the Software, and to permit persons to whom the Software is | |
// furnished to do so, subject to the following conditions: | |
// | |
// The above copyright notice and this permission notice shall be included in |
# Antonio Olinto Avila-da-Silva, Instituto de Pesca, Brasil | |
# https://gist.github.com/aolinto/9d9514eb453109425f5b35c42fa0eb95 | |
# script to process COPERNICUS Sea Surface Salinity | |
# product MULTIOBS_GLO_PHY_REP_015_002 | |
# nc file downloaded from | |
# http://marine.copernicus.eu/services-portfolio/access-to-products/?option=com_csw&view=details&product_id=MULTIOBS_GLO_PHY_REP_015_002 | |
# dataset-armor-3d-rep-monthly | |
# the script will transform nc file to brick raster, read temperature and salinity data | |
# for a given area and depth, compute its statistics and write them into | |
# a single csv file named COPERNICUS_to.csv or COPERNICUS_so.csv |
// GLFW and OpenGL example with very verbose comments and links to documentation for learning | |
// By Soren Saket | |
// semi-colons ; are not requied in odin | |
// | |
// Every Odin script belongs to a package | |
// Define the package with the package [packageName] statement | |
// The main package name is reserved for the program entry point package | |
// You cannot have two different packages in the same directory |