Skip to content

Instantly share code, notes, and snippets.

superlou

Block or report user

Report or block superlou

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View editable-text.hbs
<input value={{value}} oninput={{action (mut this.newValue) value="target.value"}}/>
{{#if isChanged}}
<button {{action "reset"}}>reset</button>
{{/if}}
View gist:abdce6a63d0c372a3288554489a5adbf
[Defaults]
length = 0:50
[Room 1]
1:00 End of the Whatever [1:15]
2:30 Another Thing [moved]
2:00 Fish Fry
3:10 Boat Fry
[Room 2]
@superlou
superlou / * INTERCEPT *
Created Dec 30, 2017
Partial Intercept Follows
View * INTERCEPT *
RX CHANNEL: BT-LE-HOGP
RX TARGET: https://goo.gl/8hDe7L
LENGTH: UNEXPECTED/INCOMPLETE
MISSING CHARS (3)
== SOM ==
EGCVTRAO743H4Z_TO?#1TB68E
== EOM ==
@superlou
superlou / main.rs
Created Aug 13, 2017
Sending a sender through the channel to get a response
View main.rs
use std::thread;
use std::sync::mpsc;
use std::sync::mpsc::{Sender, SyncSender};
use manager::Manager;
use console::console_task;
use rocket::State;
pub enum BackendMsg {
Quit,
@superlou
superlou / console.rs
Created Aug 12, 2017
Getting main thread info into Rocket route
View console.rs
use ::BackendMsg;
use std::io;
use std::sync::mpsc::SyncSender;
pub fn console_task(sender: SyncSender<BackendMsg>) {
let run = true;
while run {
let mut input = String::new();
@superlou
superlou / Configuration.h
Created Apr 2, 2017
FLSUN Delta with Marlin 1.1.0-RC8
View Configuration.h
/**
* Marlin 3D Printer Firmware
* Copyright (C) 2016 MarlinFirmware [https://github.com/MarlinFirmware/Marlin]
*
* Based on Sprinter and grbl.
* Copyright (C) 2011 Camiel Gubbels / Erik van der Zalm
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
@superlou
superlou / config.xml
Created Mar 16, 2017
SmallTree SCRAM test
View config.xml
<?xml version="1.0"?>
<scram>
<input-files>
<file>input.xml</file>
</input-files>
<options>
<analysis importance="true" uncertainty="false" ccf="false"/>
<limits>
<product-order>10</product-order>
<mission-time>8760</mission-time>
@superlou
superlou / Configuration.h
Last active May 8, 2018
FLSUN configuration
View Configuration.h
/**
* Marlin 3D Printer Firmware
* Copyright (C) 2016 MarlinFirmware [https://github.com/MarlinFirmware/Marlin]
*
* Based on Sprinter and grbl.
* Copyright (C) 2011 Camiel Gubbels / Erik van der Zalm
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
@superlou
superlou / action-bar.hbs
Last active Aug 6, 2016 — forked from anonymous/action-bar.hbs
Bad Heirarchies
View action-bar.hbs
<div class='action-bar'>
{{input}}
<ul class='actions'>
<li>Save<span class='shortcut'>ctrl + s</span></li>
<li>Insert timestamp<span class='shortcut'>ctrl + d</span></li>
<li>Close task</li>
<li>Reject task</li>
<li>Insert new task</li>
<li>Hide completed</li>
<li>Collapse all</li>
View dial.json
{
"diameter": 28.5,
"dial_fill": "#000",
"default_fill": "#fff",
"rings": [
{
"features": [
{
"type": "radial",
"diameter": 23,
You can’t perform that action at this time.