Skip to content

Instantly share code, notes, and snippets.

Avatar
👨‍💻
Full send daily.

jfrux jfrux

👨‍💻
Full send daily.
View GitHub Profile
View VideoTicker.brs
sub init()
' ...
m.itemsListNode = m.top.findNode("tickerItems")
' ...
end sub
' ...
sub onContentChange()
if m.top.itemsList <> invalid
m.itemsListNode.insertChildren(m.top.itemsList)
@jfrux
jfrux / colins_wind_tunnel.ino
Created Mar 13, 2020
Colins Wind Tunnel Fan Code
View colins_wind_tunnel.ino
#include <Adafruit_CircuitPlayground.h>
#include <Adafruit_Circuit_Playground.h>
#include <Servo.h>
Servo throttle;
bool testMode = false;
int escPin = 10;
int buttonPin = 4;
int forwardPos = 102;
View gist:5c56b0c90cb7bb7efe6778ade0629d5a
# lib/jsonapi/adapters/transactionless_mongoid_adapter.rb
module Jsonapi
module Adapters
# Mongoid transactionless adapter
# See https://github.com/jsonapi-suite/jsonapi_compliable/blob/master/lib/jsonapi_compliable/adapters/abstract.rb
#
# @author [Cyril]
#
class TransactionlessMongoidAdapter < JsonapiCompliable::Adapters::Abstract
def sideloading_module
View query.sql
SELECT * FROM core_recipeitem RI1
LEFT JOIN core_recipeitem RI2 ON RI1.item_id = RI2.item_id
@jfrux
jfrux / ui.c
Last active Jul 15, 2018
openpilot ui.c with tri-state switches and stats
View ui.c
#include <stdio.h>
#include <stdlib.h>
#include <stdbool.h>
#include <unistd.h>
#include <assert.h>
#include <sys/mman.h>
#include <sys/resource.h>
#include <cutils/properties.h>
@jfrux
jfrux / Installing Chocolatey on Windows
Created Jun 19, 2018
Corresponding Code for Comma EON: Connecting via SSH on Medium
View Installing Chocolatey on Windows
Set-ExecutionPolicy Bypass -Scope Process -Force; iex ((New-Object System.Net.WebClient).DownloadString('https://chocolatey.org/install.ps1'))
@jfrux
jfrux / Failed Attempt 1.ino
Last active Nov 17, 2021
Traxxas RC Car Arduino Experiements.
View Failed Attempt 1.ino
#include "Servo.h"
Servo myServo1;
Servo myServo2;
int angle=90;
int thrust=90;
int sensorValue=8;
char incoming = "";
void setup() {
@jfrux
jfrux / guide.md
Last active Oct 12, 2017
Getting Friendly with Ember - Part 2
View guide.md

Getting Friendly with Ember — Part 2

Learning the Basics

This document assumes you already have a working version of ember-cli installed. If you need help installing Node.js or Ember I can recommend a decent guide or help you myself.

Creating a New Ember App

Open up a fresh Terminal (MacOS & Linux) / PowerShell (Windows) window.

At the prompt we will change into our Projects directory (wherever you keep your code projects).

@jfrux
jfrux / 0_reuse_code.js
Created Aug 10, 2017
Here are some things you can do with Gists in GistBox.
View 0_reuse_code.js
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console