Skip to content

Instantly share code, notes, and snippets.

View sacarino's full-sized avatar

Shane sacarino

View GitHub Profile
@ijlee2
ijlee2 / ci-cd.yml
Last active August 29, 2023 21:37
GitHub Actions workflow for Ember apps (yarn)
# The workflow template is designed for Ember apps.
#
# It assumes certain dependencies and scripts in package.json. If
# they don't apply to your project, feel free to remove irrelevant
# code in the workflow. These can be inferred from the job name.
#
# {
# "scripts": {
# "build": "ember build --environment=production",
# "build:test": "ember build --environment=test",
@jenweber
jenweber / my-octane-component.js
Last active May 27, 2021 16:08
How to use Ember Concurrency with Octane
// Octane
import Component from '@glimmer/component';
import { tracked } from '@glimmer/tracking';
import { task } from 'ember-concurrency';
export default class MyOctaneComponent extends Component{
@tracked status = null
@(task(function * () {
@naoki-sawada
naoki-sawada / client.js
Last active May 2, 2024 16:11
Simple socket.io room and auth example
const io = require('socket.io-client');
const socket = io('http://localhost:3000', {
transportOptions: {
polling: {
extraHeaders: {
'Authorization': 'Bearer abc',
},
},
},
@amkirwan
amkirwan / rollback-relationships.js
Last active December 18, 2020 18:44
Ember.js rollback model and relationships
//mixins/rollback-relationships.js
import Ember from 'ember';
import DS from 'ember';
export default Ember.Mixin.create({
cacheRelationships: Ember.computed(function() { return Ember.A(); }),
tmpRecords: Ember.computed(function() { return Ember.A(); }),
dirtyRelationships: Ember.computed(function() { return Ember.A(); }),
@fasiha
fasiha / README.md
Last active November 3, 2023 20:40
Set up RTL-SDR, dump1090, and dump978 for ADS-B/TIS-B/FIS-B/UAT on macOS

Introduction

I’m not very familiar with the aviation jargon (see FAA’s ADS-B FAQ), but ADS-B is a next-gen system where aircraft are equipped with transponders that periodically broadcast their own positions and receive the reports from both other aircraft (direct air-to-air) as well as air-traffic control (ATC) ground transmitters.

There are two separate ADS-B radio bands: the commercial aviation (CA) is at 1090 MHz while the general aviation (GA) is at 978 MHz. If I can be permitted a gross generalization—the former corresponds to big commercial jets and the latter to small private aircraft.

Because ADS-B is designed to democratize airspace situational awareness (in contrast to the older setup, like from films, where a central air-traffic controller is coordinating all these aircraft that can’t see each other), we can buy cheap RF receivers to pick up and decode the messages being broadcast by aircraft and ground towers to get our own picture of the