-
#!/usr/bin/env ruby print "hello world"
- This is normal text
This file contains 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
/* | |
arm-linux-gnueabi-gcc-4.6 -O2 -march=armv7-a -mtune=cortex-a9 -ftree-vectorize -mhard-float -mfloat-abi=softfp -mfpu=neon -ffast-math -mvectorize-with-neon-quad -S neon_test.c | |
*/ | |
void NeonTest(short int * __restrict a, short int * __restrict b, short int * __restrict z) | |
{ | |
int i; | |
for (i = 0; i < 200; i++) { | |
z[i] = a[i] * b[i]; | |
} | |
} |
This file contains 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
(require 'cl) | |
(defun parse-csv-file (file) | |
(interactive | |
(list (read-file-name "CSV file: "))) | |
(let ((buf (find-file-noselect file)) | |
(result nil)) | |
(with-current-buffer buf | |
(goto-char (point-min)) | |
(while (not (eobp)) |
This file contains 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 <qrencode.h> | |
#include <stdio.h> | |
#include <stdlib.h> | |
static const size_t ZOOM_SIZE = 10; | |
int main(int argc, char *argv[]) | |
{ | |
if (argc < 2) { | |
fprintf(stderr, "Usage: %s string\n", argv[0]); |
This file contains 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
#!/usr/bin/env bash | |
set -e | |
set -x | |
VERSION=$1 | |
if [[ $VERSION == "" ]]; then | |
echo "Usage: update-gh version" | |
exit 1 | |
fi |
This file contains 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
#compdef cpanm | |
# ------------------------------------------------------------------------------ | |
# Description | |
# ----------- | |
# | |
# Completion script for cpanm (http://search.cpan.org/dist/App-cpanminus/lib/App/cpanminus.pm). | |
# | |
# Source: https://github.com/rshhh/cpanminus/blob/master/etc/_cpanm | |
# | |
# ------------------------------------------------------------------------------ |
This file contains 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
#!/usr/bin/env python | |
import sys | |
import os | |
import json | |
def usage(): | |
print("Usage: json2gostruct.py struct_name") | |
os.exit(0) | |
def indent(nest): |
This file contains 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 <unistd.h> | |
#include <stdio.h> | |
#include <stdlib.h> | |
#include <string.h> | |
#include <stddef.h> | |
#include <errno.h> | |
#include <sys/time.h> | |
#include <sys/stat.h> | |
#include <fcntl.h> | |
#include <stdbool.h> |
NewerOlder