Skip to content

Instantly share code, notes, and snippets.

View ChrisLane's full-sized avatar

Chris Lane ChrisLane

View GitHub Profile
.LC0:
.string "%d\n"
.globl print
.type print, @function
print:
pushq %rbp
movq %rsp, %rbp
subq $16, %rsp

Keybase proof

I hereby claim:

  • I am ChrisLane on github.
  • I am chrislane (https://keybase.io/chrislane) on keybase.
  • I have a public key whose fingerprint is 44FC F5E9 9484 6A63 9A3C 8372 DB36 56CC 973B BEB5

To claim this, I am signing this object:

-----BEGIN PGP MESSAGE-----
hQIMAxMMJKKL3k7NAQ//d24OqNrbrPTQq0snquKvPtsVOvSBRZc12HVMQkyqkiOl
s1wwreAZDGSO88eMJWNxUugTMCEri/pKs+iF8+Q5uQHLKCVIkK235brrNuFdaAVo
+z5K9tVn5Z53jgocmrXhSuuYtUbBfZCb05gvhD4QfmMpgDs+NHeN4gIrkJwiuCSr
AJWIagGgWRrXw4XCoPxCHe4UZw/DEvHyMdTap+y25FL5kH5QXj3sZYcdCFW+kPlG
PRHLy8eiiPWxfaF7Dfi4ZmbsMgdFCCkL+lhLZuBILVU46TogV2sckORqlS8+cl3a
Tgx9zN9/kO2avNbmPxoPXH4EapBYXXn0a3yC5yWESCWVRX9CK5eLBX1qF7JmiIvi
7wGwlCgjFU6cOWFG1AByfliDoWe5U9eHPZQCCB0TP+aokFEyyXo1gCg3HaKUkqG4
nQH4vFScwyYfUTni6zGxhxheajkzjyyGudnOhoznhbkIKr4iQ3Uhk9mr9EQ7oeSp
[Multicraft] Loaded config for "Sponge Forge"
[Multicraft] JAR file not found, copying from global JAR directory
[Multicraft] Failed to copy jarfile from global JAR directory
[Multicraft] JAR file not found. Go to "Settings"-"Update Minecraft" to download the JAR file.
[Multicraft] Updating eula.txt file
[Server] INFO Error: Unable to access jarfile /spongeforge.jar
// Fix CUDA in CLion
#ifdef __JETBRAINS_IDE__
#define __CUDACC__ 1
#define __host__
#define __device__
#define __global__
#define __forceinline__
#define __shared__
inline void __syncthreads() {}
cmake_minimum_required(VERSION 3.8 FATAL_ERROR)
project(assignment1 CXX CUDA)
set(CMAKE_CXX_STANDARD 17)
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -Ofast -Wall -Wextra -Wpedantic")
set(CMAKE_CUDA_STANDARD 11)
#set(CMAKE_CUDA_FLAGS "${CMAKE_CUDA_FLAGS} -arch=sm_50")
include_directories(/opt/cuda/include)
__global__ void addToBlocks(int *d_Output, int *d_Addition, int len) {
int thid = blockIdx.x * blockDim.x + threadIdx.x;
if ((thid) < len) {
printf("%d:%d + %d:%d\n", thid, d_Output[thid], blockIdx.x, d_Addition[blockIdx.x]);
d_Output[thid] += d_Addition[blockIdx.x];
}
}
#!/usr/bin/env python3
import matplotlib as mp
import matplotlib.pyplot as plt
import numpy as np
import sys
import peakutils as pu
from scipy import signal
# Read trace input file
\begin{equation}
LatAfterMove = \arcsin\left({\sin{Lat} \times \cos{\frac{Distance}{EarthRadius}} \plus \cos{Lat} \times \sin{\frac{Distance}{EarthRadius}} \times \cos{Bearing}}\right)
\end{equation}
# Maintainer: Daniel Albers <[email protected]>
# Source: <https://github.com/AlD/archlinux/tree/master/pkgbuilds/quassel>
pkgbase='quassel'
pkgname=(
"${pkgbase}-core-git"
)
pkgver=0.12.0.512.ga8360815
pkgrel=1