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
from dataclasses import dataclass | |
from functools import wraps | |
from time import time | |
@dataclass | |
class Thing: | |
pass |
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 "api.h" | |
#include "internal.h" | |
api* create_api() { | |
internal* in = malloc(sizeof(internal)); | |
in->the_api.x = 1; | |
in->the_api.y = 2; |
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 ( | |
"fmt" | |
"reflect" | |
"strconv" | |
"strings" | |
) | |
type Data interface{} |
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
@echo off | |
:: Change those two varaibles | |
set DROPBOX_PATH=C:\Users\<YourUserHere>\Dropbox\AppData\SublimeText3 | |
set SUBLIME_PATH=C:\Users\<YourUserHere>\AppData\Roaming\Sublime Text 3 | |
:: Remove default folders if exists | |
if exist "%SUBLIME_PATH%\Installed Packages" (goto remove_ipkg) else (goto check_pkg) | |
:remove_ipkg |
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 <iostream> | |
#include <string> | |
using namespace std; | |
// Entity Base Class | |
class Entity | |
{ | |
protected: | |
int _x; |
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
# -*- coding: utf-8 -*- | |
# -- MAPGEN.PY -- | |
import sys | |
import math | |
import random | |
class Map: | |
# consts | |
_FOUR_DIRECTIONS = [(1, 0), (-1, 0), (0, 1), (0, -1)] |
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
#ifndef __STATE_H__ | |
#define __STATE_H__ | |
#include <string> | |
class State | |
{ | |
public: | |
State(const std::string &name, void (*startFunction)(), void (*updateFunction)(float), void (*stopFunction)()); | |
~State(); |
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
#ifndef __STATE_H__ | |
#define __STATE_H__ | |
#include <string> | |
class State | |
{ | |
public: | |
State(const std::string &name, void (*startFunction)(), void (*updateFunction)(float), void (*stopFunction)()); | |
~State(); |
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
from google.appengine.ext import db | |
class Post(db.Model): | |
title = db.StringProperty() | |
slug = db.StringProperty() | |
date = db.DateTimeProperty(auto_now_add=True) | |
author = db.StringProperty() | |
content = db.TextProperty() | |
category = db.ReferenceProperty(Category, collection_name='posts') | |
tags = db.ListProperty(db.Key) |
NewerOlder