Each of these commands will run an ad hoc http static server in your current (or specified) directory, available at http://localhost:8000. Use this power wisely.
$ python -m SimpleHTTPServer 8000
// From https://raw.githubusercontent.com/ahmedammar/imx-testing-apps-misc/master/libvpu_encode.c | |
include <stdlib.h> | |
#include <stdio.h> | |
#include <stdint.h> | |
#include <string.h> | |
#include <fcntl.h> /* fcntl */ | |
#include <sys/mman.h> /* mmap */ | |
#include <sys/ioctl.h> /* fopen/fread */ | |
#include "vpu_io.h" |
static const clang::FileEntry * getFileEntryForDecl(const clang::Decl * decl, clang::SourceManager * sourceManager) | |
{ | |
if (!decl || !sourceManager) { | |
return 0; | |
} | |
clang::SourceLocation sLoc = decl->getLocation(); | |
clang::FileID fileID = sourceManager->getFileID(sLoc); | |
return sourceManager->getFileEntryForID(fileID); | |
} | |
# /etc/sysctl.conf | |
# Clemens Gruber, 2014 | |
# | |
# Uncomment this to prevent users from seeing information about processes that | |
# are being run under another UID. | |
security.bsd.see_other_uids=0 | |
## I/O |
# /etc/make.conf | |
# Clemens Gruber, 2017 | |
# | |
# Nearby mirror | |
#MASTER_SITE_OVERRIDE="ftp://ftp.at.freebsd.org/pub/FreeBSD/ports/distfiles/" | |
#MASTER_SITE_OVERRIDE="ftp://ftp.de.freebsd.org/pub/FreeBSD/ports/distfiles/" | |
# Build | |
MAKE_JOBS_NUMBER?=8 |
#!/bin/bash | |
apply () { | |
filename=$1 | |
shift | |
patch_args=$* | |
gotSubject=no | |
msg="" |
Each of these commands will run an ad hoc http static server in your current (or specified) directory, available at http://localhost:8000. Use this power wisely.
$ python -m SimpleHTTPServer 8000
// MP 5 Scan | |
// Given a list (lst) of length n | |
// Output its prefix sum = {lst[0], lst[0] + lst[1], lst[0] + lst[1] + ... + lst[n-1]} | |
// Due Tuesday, January 22, 2013 at 11:59 p.m. PST | |
#include <wb.h> | |
#define BLOCK_SIZE 512 //@@ You can change this | |
#define wbCheck(stmt) do { \ |
rsync (Everyone seems to like -z, but it is much slower for me)
#!/bin/sh | |
### | |
# SOME COMMANDS WILL NOT WORK ON macOS (Sierra or newer) | |
# For Sierra or newer, see https://github.com/mathiasbynens/dotfiles/blob/master/.macos | |
### | |
# Alot of these configs have been taken from the various places | |
# on the web, most from here | |
# https://github.com/mathiasbynens/dotfiles/blob/5b3c8418ed42d93af2e647dc9d122f25cc034871/.osx |
# This example uses b2DistanceJoint to simulate a pendulum. | |
use strict; | |
use warnings; | |
use Box2D; | |
use SDL; | |
use SDL::Event; | |
use SDL::Video; | |
use SDLx::App; | |
my $gst_handle; |