Skip to content

Instantly share code, notes, and snippets.

@assp1r1n3
assp1r1n3 / bench.c
Last active May 5, 2016 02:06
Hand assembly vs. Intrinsics
#include <stdint.h>
#include <stddef.h>
#include <time.h>
#include <stdio.h>
#include <stdlib.h>
uint64_t builtin_popcnt(const uint64_t* buf, size_t len){
uint64_t cnt = 0;
for(size_t i = 0; i < len; ++i){
cnt += __builtin_popcountll(buf[i]);
}
@assp1r1n3
assp1r1n3 / Sinatra.run
Created February 23, 2015 20:53
Sinatra runner for Cloud9
{
"cmd" : ["bash", "--login", "-c", "ruby $file -p $port -o $ip $args"],
"info" : "Sinatra started $project_path$file_name",
"env" : {},
"working_dir" : "$project_path",
"selector" : "source.rb"
}
@assp1r1n3
assp1r1n3 / 0_reuse_code.js
Last active August 29, 2015 14:07
Here are some things you can do with Gists in GistBox.
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console