-
Export .ino file and rename to .cpp
-
Add
#include <Arduino.h>
to top of the file -
run
avr-g++ -I /Applications/Arduino.app/Contents/Java/hardware/arduino/avr/cores/arduino/ -I /Applications/Arduino.app/Contents/Java//hardware/arduino/avr/variants/standard -x c++ -MMD -c -mmcu=atmega328p -Wall -DF_CPU=16000000L -Wall -Os SR04_Example.cpp
-
avr-objdump -S SR04_Example.o >> SR04_Example.lst
This file contains hidden or 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 lang="en"> | |
<head> | |
<meta charset="UTF-8"> | |
<meta name="viewport" content="width=device-width, initial-scale=1.0"> | |
<meta http-equiv="X-UA-Compatible" content="ie=edge"> | |
<title>Document</title> | |
<style> | |
html { |
Steps of a job interview
- Branding Yourself
- Name everything FirstnameLastname
- Have Website as central hub (either FirstLast.com or FirstLast.github.io)
- Have an updateable resume, and host it as PDF
- Generate your resume
- Keep your linkedin updated
- Remove anything that reveals anything personal about you (facebook, twitter, etc)
- Clean up your github. Write nice readmes, host demos
layout: resume #don't touch categories: [ hire ] # don't touch
fullname: Kevin Colten jobtitle: Chief Technology Officer, Web Developer
location: Austin, TX blurb: 'A life-learner and new technology enthusiast, I work hard at the things I love: programming, teaching, and learning.'
This file contains hidden or 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
In your wWindows VM admin powershell: | |
netsh interface portproxy add v4tov4 listenport=3000 connectport=3000 connectaddress=10.0.2.2 protocol=tcp |
This file contains hidden or 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
.env | |
node_modules |
This file contains hidden or 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
function GetUpcomingEvents() { | |
$events = array(); | |
$index = 0; | |
$today = date( "m/d/Y" ); | |
$args = array( | |
'post_type' => 'events', | |
'post_status' => 'publish', | |
'posts_per_page' => - 1, | |
'meta_key' => 'event_start_date', | |
'orderby' => 'event_start_date', |
This file contains hidden or 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
// Bookmarklet via https://mrcoles.com/bookmarklet/ (Add to bookmarks bar) | |
javascript:(function()%7BArray.from(document.querySelectorAll('.form-details-action-switch%20option')).slice(1).forEach(option%20%3D%3E%20window.open(%20option.getAttribute('value')%20%2B%20'%26export%3Dall%26'%20%2B%20document.querySelector('.form-details-actions-export').getAttribute('href').split('%26').find(str%20%3D%3E%20str.includes('_wpnonce'))%2C%20'_blank'))%7D)() |
This file contains hidden or 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 { xml2json, json2xml } = require('xml-js'); | |
const { readFileSync, writeFileSync } = require('fs'); | |
const postIds = require('./postIds').map(id => Number(id)); | |
const xml = JSON.parse(xml2json(readFileSync('./export.xml'))); | |
const comments = xml.elements.filter(element => element.type === 'comment'); | |
const rss = xml.elements.find(element => element.name === 'rss'); | |
const channel = rss.elements.find(element => element.name === 'channel'); | |
const nonItems = channel.elements.filter(element => element.name !== 'item'); |
This file contains hidden or 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
// Convert to a bookmarklet at https://mrcoles.com/bookmarklet/ | |
[...document.querySelectorAll('[data-id] a:not([aria-label])')] | |
.filter(el => el.href.includes('/c4eo/align-rails/pull/')) | |
.forEach(el => { | |
const tickets = el.innerText.split(']').join(' ').split('[').join(' ').split(',').join(' ').split(' ').filter(str => str[0] === '#'); | |
const ticketEls = tickets.map(ticket => ` | |
<a class="d-inline-block IssueLabel v-align-text-top labelstyle-de752c linked-labelstyle-de752c" style="background-color: #de752c; color: #ffffff; margin-right: 4px" title="${ticket}" href="https://www.pivotaltracker.com/n/projects/1519937/stories/${ticket.slice(1)}" target="_blank">${ticket}</a> | |
`); | |
el.parentNode.insertAdjacentHTML('beforeend', `<span class="labels lh-default">${ticketEls.join('')}</span>`); | |
}); |