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
diff --git a/baby_first.cpp b/baby_second.cpp | |
index 08796aa..746f847 100644 | |
--- a/baby_first.cpp | |
+++ b/baby_second.cpp | |
@@ -24,37 +24,24 @@ void cartProduct(std::set<int> const &n, std::set<float> const &b1, Iterator out | |
} | |
template<typename T> | |
-void strToType(std::string const &str, T *value, int range) { | |
+T strToType(std::string const &str, int range) { |
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
#![feature(generators, generator_trait)] | |
use std::{ | |
iter, | |
ops::{Generator, GeneratorState}, | |
pin::Pin, | |
}; | |
pub struct Grid<const R: usize, const C: usize> { | |
grid: [[bool; C]; R], |
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
#!/bin/sh | |
pip install cython pybind11 pythran | |
OPENBLAS=$(brew --prefix openblas) CFLAGS="-falign-functions=8 ${CFLAGS}" pip install --no-use-pep517 scipy |
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 zsh | |
traverse() | |
{ | |
find "$1" -regex ".*\.rb" | while read line; do | |
echo $line:t:r | |
done | |
} | |
traverse "$(brew --prefix)/Library/Taps" | fzf --preview 'brew info {}' |
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
# LG | |
us.rdx2.lgtvsdp.com | |
us.info.lgsmartad.com | |
us.ibs.lgappstv.com | |
us.lgtvsdp.com | |
ad.lgappstv.com | |
smartshare.lgtvsdp.com | |
ibis.lgappstv.com | |
us.ad.lgsmartad.com | |
lgad.cjpowercast.com.edgesuite.net |
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
def extract(): | |
"""Copies the caller's environment up to your IPython session""" | |
import inspect | |
import ctypes | |
frames = inspect.stack() | |
caller = frames[1].frame | |
name, ls, gs = caller.f_code.co_name, caller.f_locals, caller.f_globals | |
ipython = [f for f in inspect.stack() if f.filename.startswith('<ipython-input')][-1].frame |