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
;; SEE ALSO | |
;; http://stackoverflow.com/questions/1080328/append-in-scheme | |
(define foo '(hello world)) | |
(append! foo '(bar)) | |
(display foo)(newline) | |
(define my-append! | |
(lambda (a . b) |
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 <stdio.h> | |
#include "mpi.h" | |
int main ( int argc, char *argv[] ) { | |
int numprocs; | |
int myid; | |
MPI_Init(&argc, &argv); |
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 <stdio.h> | |
#include "my.h" | |
int main () { | |
int a; | |
scanf("%d", &a); | |
int array[ a ]; // C99's variable-length array |
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 <stdio.h> | |
#include <stdarg.h> | |
#include <signal.h> | |
#include <string.h> | |
#include <stdlib.h> | |
// | |
// Please compile with this arg -std=c99 when using GCC 4.x. | |
// commenting with double slash and inline function are C99's feature | |
// |
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 <stdio.h> | |
#include <tgmath.h> | |
// Fortunately, all three functions required in this assignment | |
// is one-liner...XD | |
static inline double speed_at_temperature( int temperature ); | |
static inline void instructions( void ); | |
static inline double TRUNC( double digits ); |
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
x = -10:0.01:10; | |
plot(x, sin(x)); | |
print -djpg first.jpg |
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 ruby | |
$:.unshift "./lib" | |
require 'em_wave' | |
require 'rubygems' | |
require 'mrplot' | |
require 'mrplot/magick' | |
require 'mrplot/plots/xy' | |
include MRPlot |
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 | |
sys.path.append("./lib") | |
from layer_helper import * | |
from pylab import * | |
from numpy import * |
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 matplotlib as mpl | |
mpl.use("Agg") # this must be called before imorting pylab | |
import pylab as pl | |
import numpy as np | |
from math import * | |
t = pl.arange(-10, 5, 0.001) |
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
# Rename this file to setup.cfg to modify matplotlib's | |
# build options. | |
[egg_info] | |
tag_svn_revision = 1 | |
[status] | |
# To suppress display of the dependencies and their versions | |
# at the top of the build log, uncomment the following line: | |
#suppress = True |