Skip to content

Instantly share code, notes, and snippets.

@achmizs
achmizs / example.go
Last active December 23, 2017 21:49
package main
import "fmt"
func main() {
fmt.Println("Hello World")
}
@achmizs
achmizs / helloworld.c
Created December 26, 2017 03:33
Hello, world!
#include <stdio.h>
main( )
{
printf("hello, world\n");
}
@achmizs
achmizs / circularbuttons.css
Last active December 26, 2017 03:38
Circular buttons
.circular-click-target-demo {
font-size: 2em;
display: table;
border-spacing: 1em 0.45em;
font-variant-numeric: proportional-nums;
-moz-font-feature-settings: "pnum";
-webkit-font-feature-settings: "pnum";
font-feature-settings: "pnum";
}
.circular-click-target-demo a {
@achmizs
achmizs / parsing_arguments_in_javascript.js
Last active October 19, 2018 16:46
Parsing commandline arguments in JavaScript.
// Utility methods. Makes the code more readable.
Array.prototype.contains = function (element) {
return (this.indexOf(element) !== -1);
}
String.prototype.hasPrefix = function (prefix) {
return (this.lastIndexOf(prefix, 0) === 0);
}
var parts = [ ], flags = [ ];