Essentially following this answer:
https://stackoverflow.com/questions/12514197/convert-a-git-folder-to-a-submodule-retrospectively
Looking at the docs for git filter-branch is useful too:
First, create a cloned copy of your directory
| !/bin/bash | |
| print_help() { | |
| echo | |
| echo "Usage: $(basename $0) -p port [-p port] -s server [-s server]" | |
| echo | |
| } | |
| TMP_DIR="/tmp/nginx_conf_$$" |
| with import <nixpkgs> {}; | |
| let | |
| jdk = openjdk; | |
| node = nodejs-10_x; | |
| sdk = androidenv.androidsdk { | |
| platformVersions = [ "23" ]; | |
| abiVersions = [ "x86" ]; | |
| useGoogleAPIs = true; | |
| useExtraSupportLibs = false; |
| # Chord Sequence only in Sonic Pi | |
| # (no MIDI or need for external DAW) | |
| define :chordSeq do | tonic, mode, degs | | |
| majorKeyTriads = [:M,:m,:m,:M,:M,:m,:dim] | |
| minorKeyTriads = [:m,:dim,:M,:m,:m,:M,:M] | |
| majorKey7s = [:M7,:m7,:m7,:M7,:dom7,:m7,:halfdiminished] | |
| minorKey7s = [:m7,:halfdiminished,:M7,:m7,:m7,:M7,:dom7] | |
| # Create Chords in Sonic Pi, to send via MIDI to your other DAW or synth | |
| # See https://www.youtube.com/watch?v=qd8SEL_rTNw | |
| define :chordSeq do | tonic, mode, degs | | |
| majorKeyTriads = [:M,:m,:m,:M,:M,:m,:dim] | |
| minorKeyTriads = [:m,:dim,:M,:m,:m,:M,:M] | |
| majorKey7s = [:M7,:m7,:m7,:M7,:dom7,:m7,:halfdiminished] | |
| minorKey7s = [:m7,:halfdiminished,:M7,:m7,:m7,:M7,:dom7] | |
| cs = [] |
Essentially following this answer:
https://stackoverflow.com/questions/12514197/convert-a-git-folder-to-a-submodule-retrospectively
Looking at the docs for git filter-branch is useful too:
First, create a cloned copy of your directory
| { stdenv, fetchzip, pkgconfig, ffmpeg, gtk3-x11, libjpeg, libusbmuxd, alsaLib, speex }: | |
| stdenv.mkDerivation rec { | |
| pname = "droidcam"; | |
| version = "0"; | |
| src = fetchzip { | |
| url = "https://github.com/dev47apps/droidcam/archive/refs/tags/v1.7.2.zip"; | |
| sha256 = "1iskvs5p71gkiinj78kkl9ygl5il9rdbzm0h85hwyzm2xwkcybrp"; | |
| }; |
| { stdenv, fetchzip, pkgconfig, ffmpeg, gtk2-x11, libjpeg }: | |
| stdenv.mkDerivation rec { | |
| pname = "droidcam"; | |
| version = "0"; | |
| src = fetchzip { | |
| url = "https://github.com/aramg/droidcam/archive/b49842a02611f8ddc6b9342ef74e299abd1c4090.zip"; | |
| sha256 = "05kd5ihwb3fldmalv67jgpw4x0z0q39lfis69r7yh03qiqlviymk"; | |
| }; |
| #include <stdio.h> | |
| #include <arrayfire.h> | |
| #include <thrust/device_vector.h> | |
| #include <thrust/sort.h> | |
| #include <thrust/binary_search.h> | |
| #include <thrust/adjacent_difference.h> | |
| using namespace af; | |
| #define ITER 100 | |
| int main(int argc, char **argv) |
| I have to be frank here, this is going to be | |
| - criticism of thrust | |
| - Showing off ArrayFire (of which I am a core developer) | |
| *Criticism of thrust* | |
| They do a good job at optimizing parallel algorithms for vector inputs. | |
| They use data level parallelism (among other things) to parllelize algorithms that work really well for large, vector inputs. | |
| But they fail to improve upon it and go all the way to perfom true data level parallelism. i.e. a large number of small problems. |