Skip to content

Instantly share code, notes, and snippets.

View aorandexiaohai's full-sized avatar

专业课达人 aorandexiaohai

View GitHub Profile
@aorandexiaohai
aorandexiaohai / ninety-nine-scheme-problems.scm
Created April 3, 2019 11:41 — forked from erickedji/ninety-nine-scheme-problems.scm
Ninety Nine Scheme Problems (30 answered)
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
; Quatre-vingts-dix-neuf problèmes en Scheme ;
; KEDJI Komlan Akpédjé <eric.kedji@gmail.com> ;
; http://erickedji.wordpress.com/ ;
; Elève ingénieur à l'ENSIAS ;
; ;
; Inspiré de 'Ninety-nine Lisp Problems' ;
; (www.ic.unicamp.br/~meidanis/courses/ ;
; mc336/2006s2/funcional/ ;
@aorandexiaohai
aorandexiaohai / execv-example.c
Created October 22, 2018 16:54 — forked from fxdpntthm/execv-example.c
small sample program to demonstrate execv function usage
#include<stdio.h>
#include<errno.h>
#include<stdlib.h>
#include<strings.h>
#include<unistd.h>
#define BASH_EXEC "/usr/bin/bash"
#define LS_EXEC "/usr/bin/ls"
#define BSIZE 50
@aorandexiaohai
aorandexiaohai / spline.c
Created October 14, 2018 02:47 — forked from svdamani/spline.c
Natural Cubic Spline Interpolation in C
/** Numerical Analysis 9th ed - Burden, Faires (Ch. 3 Natural Cubic Spline, Pg. 149) */
#include <stdio.h>
int main() {
/** Step 0 */
int n, i, j;
scanf("%d", &n);
n--;
float x[n + 1], a[n + 1], h[n], A[n], l[n + 1],
u[n + 1], z[n + 1], c[n + 1], b[n], d[n];