Skip to content

Instantly share code, notes, and snippets.

View zacck-zz's full-sized avatar
Lemur Heavy

Zacck Osiemo zacck-zz

Lemur Heavy
View GitHub Profile
@zacck-zz
zacck-zz / code.rs
Created December 16, 2020 08:19
Rust Error
#![deny(unsafe_code)]
#![no_main]
#![no_std]
use panic_halt as _;
use nb::block;
use cortex_m_rt::entry;
use stm32f1xx_hal::{
delay,
@zacck-zz
zacck-zz / timing.js
Last active August 30, 2020 03:24
Race timing sheet automation for the August 2020 Funduro
function onSelectionChange() {
var s = SpreadsheetApp.getActiveSheet();
if( s.getName() == "Sheet1" ) { //checks that we're on Sheet1 or not
var r = s.getActiveCell();
if( r.getColumn() == 4) { //checks that the cell being edited is in column A
if( r.getValue() === '' ) //checks if the adjacent cell is empty or not?
var today = new Date().getTime();
r.setValue(today);
}
ffmpeg version 3.2.14-1~deb9u1 Copyright (c) 2000-2019 the FFmpeg developers
built with gcc 6.3.0 (Debian 6.3.0-18+deb9u1) 20170516
configuration: --prefix=/usr --extra-version='1~deb9u1' --toolchain=hardened --libdir=/usr/lib/x86_64-linux-gnu --incdir=/usr/include/x86_64-linux-gnu --enable-gpl --disable-stripping --enable-avresample --enable-avisynth --enable-gnutls --enable-ladspa --enable-libass --enable-libbluray --enable-libbs2b --enable-libcaca --enable-libcdio --enable-libebur128 --enable-libflite --enable-libfontconfig --enable-libfreetype --enable-libfribidi --enable-libgme --enable-libgsm --enable-libmp3lame --enable-libopenjpeg --enable-libopenmpt --enable-libopus --enable-libpulse --enable-librubberband --enable-libshine --enable-libsnappy --enable-libsoxr --enable-libspeex --enable-libssh --enable-libtheora --enable-libtwolame --enable-libvorbis --enable-libvpx --enable-libwavpack --enable-libwebp --enable-libx265 --enable-libxvid --enable-libzmq --enable-libzvbi --enable-omx --enable-openal
\msg model ->
Session.LoggedIn.update msg model
|> .model
# LCD
def four_bit_init do
{:ok, rs} = GPIO.open(22, :output)
{:ok, d4} = GPIO.open(25, :output)
{:ok, d5} = GPIO.open(24, :output)
{:ok, d6} = GPIO.open(23, :output)
{:ok, d7} = GPIO.open(18, :output)
GPIO.write(rs, 0)
In file included from /Users/zacck/Documents/oss/eosio.contracts/tests/eosio.token_tests.cpp:1:
In file included from /usr/local/include/boost/test/unit_test.hpp:18:
In file included from /usr/local/include/boost/test/test_tools.hpp:54:
In file included from /usr/local/include/boost/test/tools/fpc_op.hpp:19:
In file included from /usr/local/include/boost/test/tools/fpc_tolerance.hpp:19:
In file included from /usr/local/include/boost/test/tree/decorator.hpp:22:
In file included from /usr/local/include/boost/test/tree/fixture.hpp:21:
In file included from /usr/local/include/boost/function/function0.hpp:11:
In file included from /usr/local/include/boost/function/detail/maybe_include.hpp:15:
In file included from /usr/local/include/boost/function/function_template.hpp:13:
@zacck-zz
zacck-zz / cpp_lambdas.cpp
Last active November 27, 2019 07:10
Lambda examples in C++
#include <iostream>
#include <cstdlib>
#include <string>
#include <vector>
#include <numeric>
#include <ctime>
#include <cmath>
#include <algorithm>
std::vector<int> GenerateRandVec(int numOfNums, int min, int max);
g++ boost_unit_testing/sampleTest.cpp -o boost_unit_testing/sampleTest -l boost_system
Undefined symbols for architecture x86_64:
"boost::test_tools::tt_detail::report_assertion(boost::test_tools::assertion_result const&, boost::unit_test::lazy_ostream const&, boost::unit_test::basic_cstring<char const>, unsigned long, boost::test_tools::tt_detail::tool_level, boost::test_tools::tt_detail::check_type, unsigned long, ...)", referenced from:
sample_test::test_method() in sampleTest-c66c77.o
bool boost::test_tools::tt_detail::check_frwd<boost::test_tools::tt_detail::equal_impl_frwd, int, int>(boost::test_tools::tt_detail::equal_impl_frwd, boost::unit_test::lazy_ostream const&, boost::unit_test::basic_cstring<char const>, unsigned long, boost::test_tools::tt_detail::tool_level, boost::test_tools::tt_detail::check_type, int const&, char const*, int const&, char const*) in sampleTest-c66c77.o
"boost::unit_test::lazy_ostream::inst", referenced from:
boost::unit_test::lazy_ostream::instance() in
'use strict'
const autoprefixer = require('autoprefixer')
const path = require('path')
const webpack = require('webpack')
const HtmlWebpackPlugin = require('html-webpack-plugin')
const CaseSensitivePathsPlugin = require('case-sensitive-paths-webpack-plugin')
const InterpolateHtmlPlugin = require('react-dev-utils/InterpolateHtmlPlugin')
const getClientEnvironment = require('./env')
const paths = require('../config/paths')
'use strict'
const autoprefixer = require('autoprefixer')
const path = require('path')
const webpack = require('webpack')
const HtmlWebpackPlugin = require('html-webpack-plugin')
const CaseSensitivePathsPlugin = require('case-sensitive-paths-webpack-plugin')
const InterpolateHtmlPlugin = require('react-dev-utils/InterpolateHtmlPlugin')
const getClientEnvironment = require('./env')
const paths = require('../config/paths')