Last Update: May 13, 2019
Offline Version
#!/usr/bin/perl | |
# from http://stackoverflow.com/questions/298314/find-files-in-git-repo-over-x-megabytes-that-dont-exist-in-head | |
use 5.008; | |
use strict; | |
use Memoize; | |
sub usage { die "usage: git-large-blob <size[b|k|m]> [<git-log arguments ...>]\n" } | |
@ARGV or usage(); | |
my ( $max_size, $unit ) = ( shift =~ /^(\d+)([bkm]?)\z/ ) ? ( $1, $2 ) : usage(); |
Metadata-Version: 1.0 | |
Name: fred_emcee_swig | |
Version: 1.0 | |
Summary: UNKNOWN | |
Home-page: UNKNOWN | |
Author: UNKNOWN | |
Author-email: UNKNOWN | |
License: UNKNOWN | |
Description: UNKNOWN | |
Platform: UNKNOWN |
/* | |
* An efficient MPI parallel reduction without MPI_Scan or MPI_Reduce. (i.e. | |
* only send/recv). | |
* | |
* TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION | |
* 0. You just DO WHAT THE FUCK YOU WANT TO. | |
*/ | |
#include <mpi.h> | |
#include <cstdio> | |
#include <vector> |
To remove a submodule you need to:
- Delete the relevant section from the .gitmodules file.
- Stage the .gitmodules changes git add .gitmodules
- Delete the relevant section from .git/config.
- Run git rm --cached path_to_submodule (no trailing slash).
- Run rm -rf .git/modules/path_to_submodule (no trailing slash).
- Commit git commit -m "Removed submodule "
- Delete the now untracked submodule files rm -rf path_to_submodule
import numpy as np | |
from numpy.fft import fft2, ifft2 | |
def overlapadd2(Amat, Hmat, L=None, Nfft=None, y=None, verbose=False): | |
""" | |
Fast two-dimensional linear convolution via the overlap-add method. | |
The overlap-add method is well-suited to convolving a very large array, | |
`Amat`, with a much smaller filter array, `Hmat` by breaking the large |
There is sometimes a situation in which one needs to get the relative offset of a structure field, common examples of this include serialization frameworks which aid to serialize objects, vertex attributes for rendering (D3D, GL.), etc.
The most common technique for getting this information is through the offsetof
macro defined in stddef.h
. Unfortunately using the macro in C++ comes with a
new set of restrictions that prevent some (subjectively valid) uses of it.
Make sure ffmpeg is up-to-date:
brew update
brew upgrade ffmpeg
Convert a MOV into frames. Tweak the 2/1
if you want more or fewer frames.
Gollumn requires changes to be commited before the server will pick them up for display.
This is a simple workflow that uses guard livereload to continually amend a sessions commit while you work with local files in your gollum wiki. You can use this with any guard task, really, but I like live reload to refresh my broswer.
For live reload to work, you need the extension installed in your browser
-- TerminalVim.app | |
-- This creates a shim Application that will enable you to open files from the Finder in vim using iTerm | |
-- To use this script: | |
-- 1. Open Automator and create a new Application | |
-- 2. Add the "Run Applescript" action | |
-- 3. Paste this script into the Run Applescript section | |
-- 4. Save the application as TerminalVim.app in your Applications folder | |
-- 5. In the Finder, right click on a file and select "Open With". In that window you can set TerminalVim as a default |