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/env node | |
(function () { | |
var Thing, Execution, Label, Association, GetLocals, Juxtapose, Value, parse, Stage, Staging | |
/* Things */ | |
Thing = function () { | |
this.members = [] | |
} | |
Execution = function (code) { |
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
When autumn plants its dagger in the heart | |
Of summer, it supplants the waning year’s | |
Warm season with its sickly counterpart, | |
And signs of life begin to disappear; | |
When summer’s lungs give up their final breath, | |
The distant sun withdraws its warming rays, | |
Abandoning the failing year to death | |
And leaching out the lifespan of the days; |
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
// image_manager.hpp | |
#ifndef IMAGE_MANAGER_HPP | |
#define IMAGE_MANAGER_HPP | |
#include <SFML/System.hpp> | |
#include <SFML/Graphics.hpp> | |
#include <map> | |
using namespace sf; |
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
Undefined symbols: | |
"__ZN12ImageManager8texturesE", referenced from: | |
__ZN12ImageManager8texturesE$non_lazy_ptr in image_manager-Ta00fT.o | |
(maybe you meant: __ZN12ImageManager8texturesE$non_lazy_ptr) | |
ld: symbol(s) not found | |
clang: error: linker command failed with exit code 1 (use -v to see invocation) |
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
Undefined symbols: | |
"__ZN12ImageManager8texturesE", referenced from: | |
__ZN12ImageManager8texturesE$non_lazy_ptr in image_manager-Ta00fT.o | |
(maybe you meant: __ZN12ImageManager8texturesE$non_lazy_ptr) | |
ld: symbol(s) not found | |
clang: error: linker command failed with exit code 1 (use -v to see invocation) |
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
var width = 5; | |
var height = 5; | |
var board = [[]]; | |
for (var y = 0; y < height; y++) { | |
board[y] = []; | |
for (var x = 0; x < width; x++) { | |
board[y][x] = { state: "dead", color: "gray" }; | |
} |
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
import java.io.File; | |
import javax.swing.JFileChooser; | |
import javax.swing.JOptionPane; | |
import javax.swing.UIManager; | |
public class FileFinder { | |
public static void main(String[] args) throws Exception { | |
// Makes the file chooser adopt the standard look for the system |
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
import javax.swing.JFileChooser; | |
import javax.swing.JOptionPane; | |
import javax.swing.UIManager; | |
public class FileFinder { | |
public static void main(String[] args) throws Exception { | |
// Makes the file chooser adopt the standard look for the system | |
// on which the program is running. |
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
require 'set.rb' | |
class Cell | |
attr_reader :contents, :done | |
def initialize(grid, x, y, contents) | |
@grid = grid; @x = x; @y = y | |
if contents == 0 | |
@contents = Set[1, 2, 3, 4, 5, 6, 7, 8, 9] | |
else |
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
y | |
/ | |
x -- + | |
\ | |
z |