Skip to content

Instantly share code, notes, and snippets.

View xldenis's full-sized avatar
🧨
i'm so wrong

Xavier Denis xldenis

🧨
i'm so wrong
View GitHub Profile
λ(ada) samd21 → git master * RUST_LOG=debug cargo flash --chip ATSAMD21G18AU --elf ~/Code/zozo/uf2-samdx1/build/samd21mini/bootloader-samd21mini-3.12.0-4-g360feb0.elf
Flashing /Users/xavier/Code/zozo/uf2-samdx1/build/samd21mini/bootloader-samd21mini-3.12.0-4-g360feb0.elf
DEBUG jaylink > libusb 1.0.24.11584
DEBUG jaylink > libusb has capability API: true
DEBUG jaylink > libusb has HID access: false
DEBUG jaylink > libusb has hotplug support: true
DEBUG jaylink > libusb can detach kernel driver: false
DEBUG jaylink > open_usb: device descriptor: DeviceDescriptor {
bLength: 0x12,
bDescriptorType: 0x1,

Keybase proof

I hereby claim:

  • I am xldenis on github.
  • I am xldenis (https://keybase.io/xldenis) on keybase.
  • I have a public key ASDzPyreHttoe7vbeIaRy4CXwPAD_IM5l-sxm_wNiKW-9wo

To claim this, I am signing this object:

@xldenis
xldenis / raycaster.html
Created May 7, 2014 02:34
Basic Ray Caster
<!doctype html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Raycaster test</title>
<script>
function Polygon(p){
var points = p;
this.contains = function(p){
@xldenis
xldenis / data_parser.rb
Created January 20, 2014 15:03
Script that generates graduation years and language information from a CSV containing relevant fields for McHacks. Replace username and password with real username/password combination to be able to use the authenticated github API ratelimit.
require 'octokit'
require 'csv'
require 'faraday-http-cache'
stack = Faraday::Builder.new do |builder|
builder.use Faraday::HttpCache
builder.use Octokit::Response::RaiseError
builder.adapter Faraday.default_adapter
end
Octokit.middleware = stack
@xldenis
xldenis / spot_exp.rb
Last active December 16, 2015 06:38
Auto Spotify playlist torrenting system
require 'net/http'
require 'json'
require 'nokogiri'
def http_req(url,limit=3)
response = Net::HTTP.get_response(URI(url))
case response
when Net::HTTPSuccess then
response.body
else