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
import { AnyAction, ActionCreatorWithPreparedPayload } from "@reduxjs/toolkit"; | |
/** | |
* A helper for matching multiple redux action creators producing a typed action. | |
* | |
* Usage: | |
* | |
* ``` | |
* export default createReducer(initialState, builder => { | |
* builder.addMatcher( |
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
#Python0to60in280Chars | |
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)" | |
brew install pyenv pyenv-virtualenv | |
echo 'eval "$(pyenv init --path)"; eval "$(pyenv virtualenv-init -)"' >> ~/.profile | |
source !$ | |
pyenv install 3.9.6 | |
pyenv virtualenv 3.9.6 my_proj | |
pyenv local my_proj | |
python |
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
'use strict'; | |
const aws = require('aws-sdk'); | |
exports.handler = async (event, context, callback) => { | |
const region = process.env.aws_region; | |
const endpoint = process.env.ses_endpoint; | |
const do_use_sesv2 = process.env.sesv2; | |
console.log({region, endpoint, do_use_sesv2}); | |
const sslEnabled = true; |
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
g++ -std=c++11 -DFINTEGER=int -I. -fPIC -m64 -Wno-sign-compare -g -O3 -Wall -Wextra -mpopcnt -msse4 -c AutoTune.cpp -o AutoTune.o | |
In file included from AutoTune.cpp:31: | |
In file included from ./faiss/MetaIndexes.h:16: | |
In file included from ./faiss/IndexShards.h:12: | |
In file included from ./faiss/impl/ThreadedIndex.h:80: | |
./faiss/impl/ThreadedIndex-inl.h:164:48: warning: unused parameter 'index' [-Wunused-parameter] | |
ThreadedIndex<IndexT>::onAfterAddIndex(IndexT* index) { | |
^ | |
./faiss/impl/ThreadedIndex-inl.h:169:51: warning: unused parameter 'index' [-Wunused-parameter] | |
ThreadedIndex<IndexT>::onAfterRemoveIndex(IndexT* index) { |
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
# Uncomment this line from YADR to enable zsh to expand ... to ../.. | |
# https://github.com/skwp/dotfiles | |
# zstyle ':prezto:module:editor' dot-expansion 'yes' | |
sed -e '/dot-expansion/ s/^#[# ]*//' -i ~/.yadr/zsh/prezto-override/zpreztorc |
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
## MIT License | |
## | |
## Copyright (c) 2017 Carl Gieringer | |
## | |
## Permission is hereby granted, free of charge, to any person obtaining a copy | |
## of this software and associated documentation files (the "Software"), to deal | |
## in the Software without restriction, including without limitation the rights | |
## to use, copy, modify, merge, publish, distribute, sublicense, and/or sell | |
## copies of the Software, and to permit persons to whom the Software is | |
## furnished to do so, subject to the following conditions: |
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 | |
# | |
# Copyright (c) 2001 Vivake Gupta (vivakeATomniscia.org). All rights reserved. | |
# | |
# 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 2 of the | |
# License, or (at your option) any later version. | |
# | |
# This program is distributed in the hope that it will be useful, |