This file contains hidden or 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 <stdio.h> | |
| #include <stdint.h> | |
| // Philips Sonicare NFC Head Password calculation by @atc1441 Video manual: https://www.youtube.com/watch?v=EPytrn8i8sc | |
| uint16_t CRC16(uint16_t crc, uint8_t *buffer, int len) // Default CRC16 Algo | |
| { | |
| while(len--) | |
| { | |
| crc ^= *buffer++ << 8; | |
| int bits = 0; | |
| do |
This file contains hidden or 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
| using LibSerialPort | |
| using Distributed | |
| using ArgParse | |
| portname = "/dev/ttyUSB0" | |
| baudrate = 9600 | |
| struct CustomType | |
| val::Int | |
| end |
This file contains hidden or 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
| <?php | |
| // half-hearted CSS minification | |
| $css = preg_replace( | |
| array('/\s*(\w)\s*{\s*/','/\s*(\S*:)(\s*)([^;]*)(\s|\n)*;(\n|\s)*/','/\n/','/\s*}\s*/'), | |
| array('$1{ ','$1$3;',"",'} '), | |
| file_get_contents('linked.css') | |
| ); | |
| // embed as a data: uri | |
| $base64css = rtrim(strtr(base64_encode($css), '+/', '-_'), '='); |
This file contains hidden or 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
| ### A Pluto.jl notebook ### | |
| # v0.17.3 | |
| using Markdown | |
| using InteractiveUtils | |
| # This Pluto notebook uses @bind for interactivity. When running this notebook outside of Pluto, the following 'mock version' of @bind gives bound variables a default value (instead of an error). | |
| macro bind(def, element) | |
| quote | |
| local iv = try Base.loaded_modules[Base.PkgId(Base.UUID("6e696c72-6542-2067-7265-42206c756150"), "AbstractPlutoDingetjes")].Bonds.initial_value catch; b -> missing; end |
This file contains hidden or 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
| <?xml version="1.0" encoding="UTF-8"?> | |
| <!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> | |
| <plist version="1.0"> | |
| <dict> | |
| <!-- not sure which one it is, so set both --> | |
| <key>Ensemble</key> | |
| <dict> | |
| <key>Enabled</key> | |
| <true/> | |
| </dict> |
This file contains hidden or 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
| # Sine regression using echo state networks in ReservoirComputing.jl | |
| ## Loading libraries | |
| ```julia | |
| using Random | |
| using Distributions | |
| using Plots | |
| using StatsPlots | |
| using ParameterizedFunctions |
This file contains hidden or 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 bash | |
| OS=$(uname) | |
| ARCH="$(uname -m)" | |
| get_julia_url() { | |
| local VERSION=${1} | |
| local MAJMIN="${VERSION%.*}" | |
| if [[ "$OS" == "Linux" ]]; then | |
| if [[ "$ARCH" == "x86_64" ]]; then |
This file contains hidden or 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
| using IntervalArithmetic | |
| using IntervalConstraintProgramming | |
| using ModelingToolkit # currently (15 Feb 2021) requires version 3 of ModelingToolkit | |
| using AbstractPlotting | |
| using Colors | |
| using WGLMakie |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains hidden or 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
| """""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""" | |
| " VIM SETTINGS | |
| """""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""" | |
| " TURNS LINE NUMBERING ON | |
| set nu | |
| " TRIGGER `autoread` WHEN FILES CHANGES ON DISK | |
| set autoread | |
| autocmd FocusGained,BufEnter,CursorHold,CursorHoldI * if mode() != 'c' | checktime | endif |
NewerOlder