This file contains hidden or 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 <stdlib.h> | |
| #include <stdio.h> | |
| #include <math.h> | |
| typedef int i; //Save space by using 'i' instead of 'int' | |
| typedef float f; //Save even more space by using 'f' instead of 'float' | |
| //Define a vector class with constructor and operator: 'v' | |
| struct v { | |
| f x,y,z; // Vector has three float attributes. |
This file contains hidden or 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
| // Dining Gophers^2 | |
| // - By Karan | |
| package main | |
| import ( | |
| "flag" | |
| "log" | |
| "runtime" | |
| "time" |
This file contains hidden or 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
| package main | |
| import ( | |
| "crypto/rand" | |
| "crypto/sha1" | |
| "encoding/hex" | |
| "flag" | |
| "fmt" | |
| "io" | |
| "io/ioutil" |
This file contains hidden or 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
| function highlight(range) { | |
| var textNodes = allTextNodes(range) | |
| // Wrap all child text nodes | |
| textNodes.forEach(function(node) { | |
| var range = document.createRange() | |
| range.selectNodeContents(node) | |
| range.surroundContents(wrapperNode()) | |
| }) |
This file contains hidden or 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/perl | |
| ######################################################################### | |
| # htpasswd-ssha is a replacement of the well known apache htpasswd. | |
| # All written in pure perl, it allows you to crypt SSHA passowrd for | |
| # nginx per example. | |
| # | |
| # Copyright (C) 2011 Guillaume Seigneuret (Omega Cube) | |
| # | |
| # This program is free software: you can redistribute it and/or modify |
This file contains hidden or 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
| 1.9.3-p286 |
NewerOlder