Skip to content

Instantly share code, notes, and snippets.

@syuu1228
syuu1228 / arm-mmap.s
Last active December 8, 2021 21:20
Linux/arm EABI system call sample program
@ This is Linux/arm EABI system call sample program.
@
@ Build with following command:
@ as -o arm-mmap.o arm-mmap.s
@ ld -o arm-mmap arm-mmap.o
@
@ You can see the program issues system calls by following command:
@ strace ./arm-mmap
@
@thanos
thanos / gnip_record.json
Last active January 1, 2016 13:49
a gnip record
{
"body": "Enjoyed our half price chicken and wawfuls today! @tamusportclubs @SullysGrill @TAMUWaterski #SCPartnerday http://t.co/XRsVqYy9Zo",
"retweetCount": 0,
"generator": {
"link": "http://twitter.com/download/android",
"displayName": "Twitter for Android"
},
"twitter_filter_level": "medium",
"geo": {
"type": "Point",
@Remiii
Remiii / merry-xmas.txt
Last active January 1, 2016 08:49
Merry Xmas
__ __ __ __
| \/ | ___ _ __ _ __ _ _ \ \/ /_ __ ___ __ _ ___
| |\/| |/ _ \ '__| '__| | | | \ /| '_ ` _ \ / _` / __|
| | | | __/ | | | | |_| | / \| | | | | | (_| \__ \
|_| |_|\___|_| |_| \__, | /_/\_\_| |_| |_|\__,_|___/
|___/
.\/.
>><><<
'/\'
@BlinkyStitt
BlinkyStitt / bdb4 and openssl paths for old osx
Last active January 1, 2016 08:49
old osx bitcoin brew patch
diff --git a/src/makefile.osx b/src/makefile.osx
index 50279fd..6ab92b1 100644
--- a/src/makefile.osx
+++ b/src/makefile.osx
@@ -7,18 +7,22 @@
# Originally by Laszlo Hanyecz ([email protected])
CXX=llvm-g++
DEPSDIR=/opt/local
+DB4DIR=$(DEPSDIR)/opt/berkeley-db4
@JorgeOlvera
JorgeOlvera / sum2
Created December 2, 2013 06:28
Sum Program
import java.util.Scanner;
public class sum2{
public static void main (String[] args) {
Scanner input = new Scanner(System.in);
System.out.println("Introduce an interger");
int limit = input.nextInt();
int nueva = 0;
int nueva2 = 0;
@domantascibas
domantascibas / Halloween Mask improved
Created December 2, 2013 06:19
Arduino code for my Halloween mask. It controls some RGB LEDs and red diffused LEDs. A button is used to change the "modes" of the mask.
// Mood Lamp
float RGB1[3];
float RGB2[3];
float INC[3];
int red, green, blue;
const int redPin = 11; //eyes red
const int greenPin = 10; //eyes green
md5 Initialization values:
0x67452301, 0xEFCDAB89, 0x98BADCFE, 0x10325476
@oxnz
oxnz / bsd_get_mac.c
Created September 18, 2013 06:42
get mac addr
#include <stdio.h>
#include <stdint.h>
#include <stdlib.h>
#include <string.h>
#include <arpa/inet.h>
#include <net/if.h>
#include <sys/ioctl.h>
#include <net/if_dl.h>
#include <net/if_types.h>
@ahinz
ahinz / gist:6495407
Last active December 22, 2015 15:49
# apt-get install apt-get install libblas-dev liblapack-dev gfortran
# pip install numpy
# pip install scipy pil
from math import exp, sqrt
from scipy import array, zeros
from scipy.signal import fftconvolve
from scipy.misc import imsave
from random import randint