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
#options that you always want but are not the default for some reason | |
alias rm='rm -rf' | |
alias cp='cp -a' | |
alias mkdir='mkdir -p' | |
alias fgrep='grep -RIn' | |
# disable Oh My Zsh history sharing | |
unsetopt share_history | |
# get list of all CMake scripts in a folder |
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
import java.util.ArrayList; | |
import java.util.Collections; | |
import java.util.HashSet; | |
import java.util.List; | |
/** | |
* Calculates the Fibonacci sequence to 59 using varying numbers of threads | |
* @author Jamie | |
* | |
*/ |
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
#include <string> | |
#include <cstring> | |
#include <vector> | |
#include <sstream> | |
#include <cstdio> | |
#include <iostream> | |
#ifdef WIN32 | |
# include <fcntl.h> | |
# include <windows.h> |
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
# - Find Intel MKL | |
# modified for AMBER | |
# Find the MKL libraries | |
# | |
# NOTE: MKL_MULTI_THREADED requires the patched FindOpenMPFixed module from the Amber-MD/cmake-buildscripts repository. | |
# | |
# Options: | |
# | |
# MKL_STATIC : use static linking. Requires linker support for the -Wl,--start-group flag. | |
# MKL_MULTI_THREADED: use multi-threading. Requires the FindOpenMP module |
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
# CheckLinkerFlag | |
# ------------------ | |
# | |
# Checks whether a compiler supports a given linker flag. | |
# | |
include(CheckCSourceCompiles) | |
include(CheckCXXSourceCompiles) | |
include(CheckFortranSourceCompiles) |
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
package net.multiplemonomials.densetsu.xml; | |
import android.database.Cursor; | |
import android.database.sqlite.SQLiteDatabase; | |
import android.os.AsyncTask; | |
import android.util.Log; | |
import com.bea.xml.stream.events.EntityReferenceEvent; | |
import java.io.InputStream; |
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
# CheckLinkerFlag | |
# ------------------ | |
# | |
# Checks whether a compiler supports a given linker flag. | |
# | |
include(CheckCSourceCompiles) | |
include(CheckCXXSourceCompiles) | |
include(CheckFortranSourceCompiles) |
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
// | |
// Created by Jamie on 5/12/2017. | |
// | |
#ifndef SOCI_LAZYSTATEMENT_H | |
#define SOCI_LAZYSTATEMENT_H | |
#include <soci/core/soci.h> | |
#include <soci/core/session.h> |
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
# Script containing several advanced functions for handling libraries in CMake. | |
# linker flag prefix -- if a link library starts with this character, it will be ignored by import_libraries() | |
# this is needed because FindMKL can return linker flags mixed with its libraries (which is actually the official CMake way of doing things) | |
if(TARGET_WINDOWS AND NOT MINGW) | |
set(LINKER_FLAG_PREFIX "/") # stupid illogical MSVC command-line format... | |
else() | |
set(LINKER_FLAG_PREFIX "-") | |
endif() |
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
package frctest.gui; | |
/* | |
* | |
* Circular queue with a fixed size. | |
* Supports random access. | |
* The first element enqueued has index zero, and enqueueing another element will increment existing elements' indexes by 1. | |
* Enqueue()ing more than maxSize elements will overwrite the highest-index element. | |
* | |
* This class copyright (c) Jamie Smith |
OlderNewer