This file contains 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
#!/bin/bash | |
months='Jan Feb Mar Apr May Jun Jul Aug Sep Oct Nov Dec' | |
echo $months | xargs mkdir | |
for month in $months | |
do | |
ls -l $1 | grep $month | awk '{print $NF}' | xargs -I {} mv {} ./$month | |
done |
This file contains 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
#!/bin/bash | |
months=(Jan Feb Mar Apr May Jun Jul Aug Sep Oct Nov Dec) | |
monthNums='01 02 03 04 05 06 07 08 09 10 11 12' | |
echo $monthNums | xargs mkdir | |
i=0 | |
for monthNum in $monthNums | |
do | |
ls -l $1 | grep ${months[$i]} | awk '{print $NF}' | xargs -I {} mv {} ./$monthNum |
This file contains 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
// Simple gamepad example that demonstraits how to read five Arduino | |
// digital pins and map them to the Arduino Joystick library. | |
// | |
// The digital pins are grounded when they are pressed. | |
// | |
// NOTE: This sketch file is for use with Arduino Leonardo and | |
// Arduino Micro only. | |
// | |
// Modified version of original code by Matthew Heironimus | |
// 2018-08-11 |
This file contains 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
const linksSelector = '.link-selector'; | |
const itemSelectors = ['.item1', '.item1', '.item1']; | |
const anchors = document.querySelectorAll(linksSelector); | |
const links = []; | |
anchors.forEach((anchor) => { links.push(anchor.href) }); | |
const results = []; | |
links.forEach((link) => { |
This file contains 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
#%RAML 0.8 | |
title: World Music API | |
baseUri: http://example.api.com/{version} | |
version: v1 | |
schemas: | |
- halLink: | | |
{ "$schema": "http://json-schema.org/schema", | |
"type": "object", | |
"description": "a Hypertext Application Language link", |
This file contains 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
const LOCAL_FEED_URL = `./feed.rss`; | |
const FEED_ERROR_TXT = `Feed unavailble, check back later`; | |
const postsEl = document.querySelector('.posts'); | |
function showRSS(RSS_URL) { | |
fetch(RSS_URL) | |
.then((response) => { | |
if (response.ok) { return response.text(); } | |
else throw new Error('Something went wrong'); }) |
This file contains 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
/* | |
Video: https://www.youtube.com/watch?v=oCMOYS71NIU | |
Based on Neil Kolban example for IDF: https://github.com/nkolban/esp32-snippets/blob/master/cpp_utils/tests/BLE%20Tests/SampleNotify.cpp | |
Ported to Arduino ESP32 by Evandro Copercini | |
Gamepad coding by Game Dragon | |
*/ | |
#include <BLEDevice.h> | |
#include <BLEServer.h> | |
#include <BLEUtils.h> |
We can make this file beautiful and searchable if this error is corrected: It looks like row 4 should actually have 1 column, instead of 11. in line 3.
This file contains 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
# View in 3table | |
# https://3table.glitch.me/ | |
# https://3table.glitch.me/#url=https://gist.githubusercontent.com/joegaffey/aacfd2438b83411e38bdff322aeeac72/raw/958e71de02b2c9eedada7d330a2c3269f55a4841/profile_cube.csv | |
4040, side, 1, 1, 5, 230, 0, -250, 0, 0, 0 | |
4040, side, 1, 1, 5, -230, 0, -250, 0, 0, 0 | |
4040, side, 1, 1, 4.2, 210, 0, -230, 0, -90, 0 | |
4040, side, 1, 1, 4.2, 210, 0, 230, 0, -90, 0 | |
c4040, side, 1, 1, 1, -210, 20, -210, 90, 0, 0 | |
c4040, side, 1, 1, 1, 210, -20, -210, 90, 180, 0 | |
c4040, side, 1, 1, 1, -210, -20, 210, -90, 0, 0 |
This file contains 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
let html = "<img src='"+temp1.toDataURL()+"' alt='from canvas'/>"; | |
let tab = window.open(); | |
tab.document.write(html); |
This file contains 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
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta name="description" content="Basic annotation UI"> | |
<meta charset="utf-8"> | |
<meta name="viewport" content="width=device-width"> | |
<p> | |
I will arise and go now, and go to Innisfree, | |
And a small cabin build there, of clay and wattles made; | |
Nine bean-rows will I have there, a hive for the honey-bee, |
OlderNewer