Skip to content

Instantly share code, notes, and snippets.

// Generate fast C code for calculating the determinant of a matrix using the
// preprocessor and the Order library, get the dependecies from
// <http://sourceforge.net/projects/chaos-pp/>
// Note the code is BROKEN.
// Damiano Stoffie 2013, released into the public domain
#include <stdio.h>
#include "order/interpreter.h"
#define ORDER_PP_DEF_8lsquare ORDER_PP_CONST([)

todo

  • hardcore
  • hardcore
  • hardcore
  • hardcore
  • hardcore
  • hardcore
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
int main (int argc, char ** argv)
{
float f;
int i;
unsigned int f_dump;
unsigned int mask = 1 << 32 - 1;
/*
* To change this license header, choose License Headers in Project Properties.
* To change this template file, choose Tools | Templates
* and open the template in the editor.
*/
package javafxapplication1;
import java.util.ArrayList;
import java.util.HashMap;
/*
* To change this license header, choose License Headers in Project Properties.
* To change this template file, choose Tools | Templates
* and open the template in the editor.
*/
package javafxapplication7;
import javafx.application.Application;
import javafx.beans.binding.Bindings;
import javafx.beans.binding.NumberBinding;
package prog2.colorgrid;
import javafx.beans.binding.Bindings;
import javafx.beans.binding.NumberBinding;
import javafx.scene.paint.Color;
import javafx.scene.shape.Rectangle;
import javafx.application.Application;
import javafx.geometry.HPos;
import javafx.scene.Scene;
import javafx.scene.control.Label;
package prog2;
import java.util.LinkedList;
import java.util.Random;
import javafx.scene.paint.Color;
import javafx.scene.shape.Rectangle;
import javafx.application.Application;
import javafx.event.ActionEvent;
import javafx.event.EventHandler;
import javafx.geometry.HPos;
(* Damiano Stoffie 2014, public domain *)
type lambda_token =
OpeningBracketToken |
ClosingBracketToken |
LambdaToken |
DotToken |
NameToken of char
type lambda_expression =
#!/usr/local/bin/ruby -w
class Cat
def initialize name
name = name.upcase
define_singleton_method :name do
name
end
sleep 5 && DISPLAY=":0.0" nvidia-settings -a [gpu:0]/GPUPowerMizerMode=1