Skip to content

Instantly share code, notes, and snippets.

#!/usr/bin/env node
(function () {
var Thing, Execution, Label, Association, GetLocals, Juxtapose, Value, parse, Stage, Staging
/* Things */
Thing = function () {
this.members = []
}
Execution = function (code) {
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;
// image_manager.hpp
#ifndef IMAGE_MANAGER_HPP
#define IMAGE_MANAGER_HPP
#include <SFML/System.hpp>
#include <SFML/Graphics.hpp>
#include <map>
using namespace sf;
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)
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)
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" };
}
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
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.
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
y
/
x -- +
\
z