This file contains 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
import java.awt.Graphics; | |
import java.awt.image.BufferedImage; | |
import javax.swing.JFrame; | |
public class PerlinChunks { | |
private static int hash32shift(int key) { | |
key = ~key + (key << 15); | |
key = key ^ (key >>> 12); | |
key = key + (key << 2); |
This file contains 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 <stdio.h> | |
int main(int argc, char* argv[]) { | |
FILE * filePointer = NULL; | |
filePointer = stdin; | |
char inputText[300]; | |
if (fgets(inputText, sizeof(inputText), filePointer) != NULL ) //!= EOF | |
{ | |
This file contains 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 <vector> | |
#include <iostream> | |
#include <dmtx.h> | |
#include <opencv2/opencv.hpp> | |
void decode(const cv::Mat& image){ | |
int width = image.cols; | |
int height = image.rows; |
This file contains 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 <stdio.h> | |
#include <string.h> | |
#include <stdlib.h> | |
typedef struct { | |
int len; | |
char *s; | |
} string_t; | |
typedef string_t string; |
This file contains 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 dependencies; | |
import java.io.File; | |
import java.io.FileNotFoundException; | |
import java.io.PrintStream; | |
import java.util.HashMap; | |
import java.util.HashSet; | |
import java.util.Iterator; | |
import java.util.Map; | |
import java.util.Map.Entry; |
This file contains 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
**.o | |
**.8 | |
_obj/ | |
main | |
**.cgo?.go | |
**.cgo?.c | |
**.cgo?.8 | |
sdl_defs.go | |
**~ |
This file contains 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
// haxe -lib neash -main Main -swf9 pollock.swf | |
import flash.display.Sprite; | |
import flash.display.Shape; | |
import flash.display.Stage; | |
import flash.display.StageScaleMode; | |
import flash.display.Bitmap; | |
import flash.display.BitmapData; |
This file contains 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 | |
use strict; | |
use warnings; | |
use LWP::Simple; | |
use Gtk2::TrayIcon; | |
# touch last_date | |
# wget "http://www.reddit.com/static/mailgray.png" "http://www.reddit.com/static/mail.png" | |
# |
This file contains 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 | |
use DBI; | |
use LWP::Simple; | |
my $dbh = DBI->connect("dbi:SQLite:dbname=servers.sqlite3","",""); | |
{ | |
my $sth = $dbh->prepare("CREATE TABLE servertypes (name varchar(255));"); |
This file contains 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 ( | |
"gl" | |
"sdl" | |
) | |
func main() { | |
if sdl.Init(sdl.INIT_VIDEO) != 0 { | |
println("Video initialization failed: " + sdl.GetError()) |
OlderNewer