Skip to content

Instantly share code, notes, and snippets.

View nickkeers's full-sized avatar

Nick keers nickkeers

View GitHub Profile
$contents = Get-Process | ConvertTo-Html -Fragment -PreContent "<html><head><title>Processes</title><link href=`"https://stackpath.bootstrapcdn.com/bootstrap/4.5.0/css/bootstrap.min.css`" rel=`"stylesheet`" /></head><body>" -PostContent "</body></html>"
$contents -replace "<table>", "<table class=`"table`">" | Out-File processes.html
test-module: compile
@if [ -z $(suite) ]; then \
@echo "No suite specified to be ran, please use make test-module suite=<module>"; \
else \
${REBAR} eunit skip_deps=true suite=$(suite); \
fi

Keybase proof

I hereby claim:

  • I am nickkeers on github.
  • I am nkeers (https://keybase.io/nkeers) on keybase.
  • I have a public key ASAOH_NQXah8t__eGIe9GuDRn-9rosZgv6jMXfc3R_rSuQo

To claim this, I am signing this object:

Keybase proof

I hereby claim:

  • I am nickkeers on github.
  • I am nkeers (https://keybase.io/nkeers) on keybase.
  • I have a public key whose fingerprint is FC64 6CF0 9D0B 5ED5 1219 720B DC29 7C92 AB2A 7C14

To claim this, I am signing this object:

<!DOCTYPE html>
<html>
<head>
<script src="http://ajax.googleapis.com/ajax/libs/jquery/2.0.2/jquery.min.js"></script>
<meta charset=utf-8 />
<title>JS Bin</title>
</head>
<body>
<br/>
<a href="" id="lb">lightbox</a>
@nickkeers
nickkeers / test.rs
Created April 14, 2013 14:51
Rust hello world
fn main() {
io::println("Hello world!");
}
@nickkeers
nickkeers / gist:201561
Created October 4, 2009 19:08
json parser
<?php
/**
* @author Nick keers
* @license http://opensource.org/licenses/gpl-license.php GNU Public License
*/
/**
* Paradox_jsonParser - Main use is to read config
* values, but im sure you can find another use !
*
@nickkeers
nickkeers / gist:181918
Created September 6, 2009 18:56
A git welcome
<?php
echo "Testing git's pastie feature";
$arr = Array("Hello","there","Jeff","from","git!");
for((int)$i = 0; $i < sizeof($arr); $i++) {
echo $arr[$i]." ";
}
?>
(*
I tried defining area like this, but it didn't work. Not too sure why yet, but we'll get back to it at some point.
let area r : float -> float = (4.0 *. atan 1.0) *. (r *. r);;
Error: This expression has type float but an expression was expected of type
float -> float
*)
let pi = 4.0 *. atan 1.0;; (* extracted pi out, this is as close as you can get apparently to pi with OCaml's float *)
let area r =
pi *. (r *. r);;
@nickkeers
nickkeers / grayscaler.java
Created September 20, 2014 14:50
A program that converts the supplied image to grayscale using the lightness algorithm. Made quickly for /r/dailyprogrammer challenge 179
package javagrayscaler;
import java.awt.image.BufferedImage;
import java.io.File;
import java.io.IOException;
import javax.imageio.ImageIO;
public class JavaGrayscaler
{
static String filePath = "";