I hereby claim:
- I am candh on github.
- I am candh (https://keybase.io/candh) on keybase.
- I have a public key ASD_UGMX3e3adX1iK3WZVGDW3onwh_tdj2kZBryJK6u8Swo
To claim this, I am signing this object:
| ;; https://harryrschwartz.com/2014/04/08/an-introduction-to-emacs-lisp.html | |
| ;; this is amazing | |
| (require 'cl-remove-if-not) | |
| (defun quicksort (items) | |
| (if (null items) | |
| nil | |
| (let* ((pivot (car items)) | |
| (rest (cdr items)) | |
| (lesser (cl-remove-if-not (lambda (x) (<= x pivot)) rest)) |
| ;; from https://harryrschwartz.com/2014/04/08/an-introduction-to-emacs-lisp.html | |
| 43 | |
| 3.0 | |
| "foo!" | |
| ;; FUNCTIONS | |
| (+ 1 2 3 4 5) |
| # candh | |
| # set compiler | |
| CC = gcc | |
| MACFLAGS = -framework OpenGL -framework GLUT | |
| LINFLAGS = -lGL -lGLU -lglut | |
| TARGET = main | |
| mac: |
| cmake_minimum_required(VERSION 3.6) | |
| project(Testing C) | |
| find_package(OpenGL REQUIRED) | |
| find_package(GLUT REQUIRED) | |
| if (OPENGL_FOUND) | |
| message("opengl found") | |
| message("include dir: ${OPENGL_INCLUDE_DIR}") | |
| message("link libraries: ${OPENGL_gl_LIBRARY}") |
| #ifdef __APPLE__ | |
| #define GL_SILENCE_DEPRECATION | |
| #include <GLUT/glut.h> | |
| #else | |
| #ifdef _WIN32 | |
| #include <window.h> | |
| #endif | |
| // linux and win | |
| #include <GL/glut.h> | |
| #endif |
| INSERT INTO reviewer (rev_id, rev_name) VALUES(9001, 'Righty Sock') | |
| INSERT INTO reviewer (rev_id, rev_name) VALUES(9002, 'Jack Malvern') | |
| INSERT INTO reviewer (rev_id, rev_name) VALUES(9003, 'Flagrant Baronessa') | |
| INSERT INTO reviewer (rev_id, rev_name) VALUES(9004, 'Alec Shaw') | |
| INSERT INTO reviewer (rev_id, rev_name) VALUES(9005, '') | |
| INSERT INTO reviewer (rev_id, rev_name) VALUES(9006, 'Victor Woeltjen') | |
| INSERT INTO reviewer (rev_id, rev_name) VALUES(9007, 'Simon Wright') | |
| INSERT INTO reviewer (rev_id, rev_name) VALUES(9008, 'Neal Wruck') | |
| INSERT INTO reviewer (rev_id, rev_name) VALUES(9009, 'Paul Monks') | |
| INSERT INTO reviewer (rev_id, rev_name) VALUES(9010, 'Mike Salvati') |
| #Create a simulator object | |
| set ns [new Simulator] | |
| #Open the NAM trace file | |
| set nf [open out.nam w] | |
| $ns namtrace-all $nf | |
| # Define finish procedure | |
| proc finish {} { | |
| global ns nf |
| .stack 100h | |
| .model small | |
| .data | |
| arr dw 12, 25, 7, 44 | |
| N dw 4 | |
| MAXN dw 0 | |
| msg1 db "Max = $" | |
| .code | |
| main proc | |
| mov ax, @data |
| # create a new simulator object | |
| set ns [new Simulator] | |
| # define different colors for data flows | |
| # as defined by fid_ | |
| $ns color 1 Blue | |
| $ns color 2 Red | |
| $ns color 3 Green | |
| $ns color 4 Black |
I hereby claim:
To claim this, I am signing this object: