Skip to content

Instantly share code, notes, and snippets.

@TheMapSmith
TheMapSmith / flights.js
Last active March 17, 2024 15:51
Fetching flight info
var fs = require('fs');
var request = require('request-promise');
var moment = require('moment')
// Globals
global.timestamp = moment().unix()
global.allPlaybacks = [];
global.geojson = {};
global.geojson['type'] = 'FeatureCollection';
global.geojson['features'] = [];

Boom环境的搭建

  • 关于RISCV的综述介绍,请参看[本链接][综述]
  • 此安装步骤基于 Ubuntu 16.04
  • 从github上clone的Boom不可以直接运行,需要Rocket Chip Generator以及riscv-tool工具链

[ucb riscv实验教程][ucb_lab]

  • riscv工具可以生成Verilog的仿真器
  • 所有的export请自行添加至~/.bashrc
  • 本步骤尚不完善,后续及时更新,
  • 如有任何建议,请联系lpn709695399@163.com. FPGA启动操作系统
@roadrunner2
roadrunner2 / 0 Linux-On-MBP-Late-2016.md
Last active July 12, 2024 19:23
Linux on MacBook Pro Late 2016 and Mid 2017 (with Touchbar)

Introduction

This is about documenting getting Linux running on the late 2016 and mid 2017 MPB's; the focus is mostly on the MacBookPro13,3 and MacBookPro14,3 (15inch models), but I try to make it relevant and provide information for MacBookPro13,1, MacBookPro13,2, MacBookPro14,1, and MacBookPro14,2 (13inch models) too. I'm currently using Fedora 27, but most the things should be valid for other recent distros even if the details differ. The kernel version is 4.14.x (after latest update).

The state of linux on the MBP (with particular focus on MacBookPro13,2) is also being tracked on https://github.com/Dunedan/mbp-2016-linux . And for Ubuntu users there are a couple tutorials (here and here) focused on that distro and the MacBook.

Note: For those who have followed these instructions ealier, and in particular for those who have had problems with the custom DSDT, modifying the DSDT is not necessary anymore - se

@rinx
rinx / flighttrack_json_parse.rb
Created December 11, 2014 05:59
Get and parse flight track from flightrader24.com
#!/usr/bin/env ruby
# -*- coding: utf-8 -*-
require 'net/http'
require 'uri'
require 'json'
flightIds=ARGV
api_url='mobile.api.fr24.com/common/v1/flight-playback.json'