View butterflight_dump_3inch.txt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
CLI | |
# dump | |
# ButterFlight / OMNIBUS (OMNI) 3.5.2 Jun 28 2018 / 14:30:13 (1012e5f) MSP API: 1.40 | |
name - | |
resource BEEPER 1 C15 | |
resource MOTOR 1 B09 | |
resource MOTOR 2 B08 | |
resource MOTOR 3 A02 | |
resource MOTOR 4 A03 |
View grr.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python | |
# tested on python3 | |
import argparse | |
import ctypes | |
import hashlib | |
import http | |
import json | |
import os |
View butterflight_config.txt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2022-05-15 @21:52:41 -- OS: Windows | |
2022-05-15 @21:52:41 -- Configurator: 10.8.0 (be4a9e1) | |
2022-05-15 @21:52:42 -- Loaded release information for configurator from GitHub. | |
2022-05-15 @21:52:48 -- Serial port successfully opened with ID: 1 | |
2022-05-15 @21:52:48 -- MultiWii API version: 1.40.0 |
View output.c
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// $ qmk json2c no_mod_tap_a.json | |
#include QMK_KEYBOARD_H | |
/* THIS FILE WAS GENERATED! | |
* | |
* This file was generated by qmk json2c. You may or may not want to | |
* edit it directly. | |
*/ |
View lis3dh_esp8266.cpp
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <Arduino.h> | |
#include <SPI.h> | |
#include <ESP8266WiFi.h> | |
#include <WifiClient.h> | |
#include <ESP8266WebServer.h> | |
#include <ESP8266mDNS.h> | |
#define STASSID "YOURSSIDHERE" | |
#define STAPSK "YOURWIFIPSKHERE" |
View arduino pot to pwm.c
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
void setup() { | |
Serial.begin(9600); | |
pinMode(11, OUTPUT); | |
analogReference(DEFAULT); | |
} | |
void loop() { | |
static int lastValue = 0; | |
int value = analogRead(A0) >> 3; | |
if (lastValue != value) { |
View main.rs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
extern crate winapi; | |
extern crate user32; | |
extern crate gdi32; | |
extern crate comctl32; | |
extern crate kernel32; | |
use std::ptr::null_mut; | |
use std::mem::size_of; | |
use std::mem::zeroed; | |
use std::os::raw::c_int; |
View javap.txt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
com.android.databinding $ javap -classpath ./compilerCommon/jars/compilerCommon-2.3.0.jar 'android/databinding/parser/BindingExpressionParser$IdentifierContext' | |
Compiled from "BindingExpressionParser.java" | |
public class android.databinding.parser.BindingExpressionParser$IdentifierContext extends org.antlr.v4.runtime.ParserRuleContext { | |
public org.antlr.v4.runtime.tree.TerminalNode Identifier(); | |
public android.databinding.parser.BindingExpressionParser$IdentifierContext(org.antlr.v4.runtime.ParserRuleContext, int); | |
public int getRuleIndex(); | |
public void enterRule(org.antlr.v4.runtime.tree.ParseTreeListener); | |
public void exitRule(org.antlr.v4.runtime.tree.ParseTreeListener); | |
public <T> T accept(org.antlr.v4.runtime.tree.ParseTreeVisitor<? extends T>); | |
} |
View c.vimrc
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
imap <C-p> backwardLine | |
imap <C-n> forwardLine | |
imap <C-k> deleteToEnd | |
site '*://discordapp.com/*' { | |
unmap <C-k> | |
iunmap <C-k> | |
} |
View splitframes.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function splitFrames(frames, cast, dwdelay, fst, offsets, showwields, enabledw, enabledrops) { | |
var out = []; | |
var firsthits = []; | |
for (var i = 0; i <= offsets; i++) { | |
var newhits = splitFramesOffset(frames, cast, dwdelay, fst, i, firsthits, showwields, enabledw, enabledrops); | |
if (firsthits.length == 0) | |
firsthits = newhits[0]; | |
out = out.concat(newhits); | |
} | |
return out; |
NewerOlder