Skip to content

Instantly share code, notes, and snippets.

View sourencho's full-sized avatar
🐧

Souren sourencho

🐧
View GitHub Profile
class_name BlobTiling
"""
Returns the blob tiling for a set of grid coordinates
See http://www.cr31.co.uk/stagecast/wang/blob.html
:params coords: Array of Vector2i coordinates
:return: Dictionary from input coordinates to 12x4 blob tile atlas coordinates
"""
function _init()
basket_sprite=1
player_sprite=2
fruit_sprite=3
player_x=64
player_y=100
@sourencho
sourencho / ungroup_v0.1.0_client_crash.md
Created February 11, 2020 00:11
Ungroup v0.1.0 Client Crash

Crash 1

Process:               ug-client [1657]
Path:                  /Users/USER/Downloads/*/ug-client
Identifier:            ug-client
Version:               0
Code Type:             X86-64 (Native)
Parent Process:        zsh [683]
Responsible:           ug-client [1657]
User ID:               501
From 7da6e7ff1d8c4279e2f5896e5096e30fc9b289ac Mon Sep 17 00:00:00 2001
From: souren <souren@papazian.info>
Date: Tue, 17 Dec 2019 18:05:22 +0400
Subject: [PATCH] Fix cxxopts include
---
CMakeLists.txt | 1 +
{src/client/extern => extern}/cxxopts/CMakeLists.txt | 0
{src/client/extern => extern}/cxxopts/include/cxxopts.hpp | 0
src/client/CMakeLists.txt | 4 +---
curl -s -X POST \
-H "Content-Type: application/json" \
-H "Accept: application/json" \
-H "Travis-API-Version: 3" \
-H "Authorization: token <TOKEN>" \
-d '{ "quiet": true }' \
https://api.travis-ci.com/job/<JOB_ID>/debug
{
"version": "0.2.0",
"configurations": [
{
"name": "(lldb) Launch ug-server",
"type": "cppdbg",
"request": "launch",
"program": "${workspaceRoot}/build/src/server/ug-server",
"args": [],
"stopAtEntry": true,
{
"version": "2.0.0",
"tasks": [
{
"label": "clean",
"type": "shell",
"options": {
"cwd": "${workspaceRoot}"
},
"command": "rm -rf build",
@sourencho
sourencho / space_invader.py
Last active August 14, 2019 19:10
Space Invader game in terminal written for RC
import threading
import random
import curses
import queue
import time
import sys
KEY_ESCAPE = 27
GAME_SPEED = 20
def crackle_pop_1():
""" Simple initial solution """
for i in range(1, 101):
if i % 3 == 0 and i % 5 == 0:
print("CracklePop")
elif i % 3 == 0:
print("Crackle")
elif i % 5 == 0:
print("Pop")
else:
@sourencho
sourencho / Test.md
Last active January 5, 2019 08:20
Shows

|Show|| |—|—|