Skip to content

Instantly share code, notes, and snippets.

View pinguin999's full-sized avatar
🦙
Petting the Alpaca

Kolja pinguin999

🦙
Petting the Alpaca
View GitHub Profile
@sixman9
sixman9 / CMakeLists.txt
Created December 14, 2010 10:42
cmake files for Apple IOS development (has C++ lean, can be adapted however)
# See original post at http://stackoverflow.com/questions/822404/how-to-set-up-cmake-to-build-an-app-for-the-iphone
cmake_minimum_required(VERSION 2.8)
cmake_policy(SET CMP0015 NEW)
cmake_policy(SET CMP0016 NEW)
project(test)
set(NAME test)
@philipsahli
philipsahli / tests.py
Created October 5, 2011 03:28
XML Webservice in Django for Debugging
from django.test import TestCase
from django.test.client import Client
import logging
logging.disable("debug")
class XMLWebserviceTest(TestCase):
c = Client()
def setUp(self):
@nealtodd
nealtodd / gist:a8f87b0d95e73eb482c5
Created June 10, 2015 11:10
Django management command to detect missing migration files.
import sys
from django.apps import apps
from django.conf import settings
from django.core.management.base import BaseCommand
from django.db import connections
from django.db.migrations.autodetector import MigrationAutodetector
from django.db.migrations.executor import MigrationExecutor
from django.db.migrations.state import ProjectState
from django.db.utils import OperationalError
@vittorioromeo
vittorioromeo / hello_triangle.cpp
Created October 10, 2015 11:07
SDL2 + OpenGL ES 2.0 - "Hello triangle" example that works both on X11 and Emscripten
#include <exception>
#include <functional>
#ifdef __EMSCRIPTEN__
#include <emscripten.h>
#include <SDL.h>
#include <SDL_image.h>
#include <SDL_ttf.h>
@floooh
floooh / NetClient.cc
Created January 18, 2017 16:07
NetClient.h (emscripten/osx/win)
//------------------------------------------------------------------------------
// NetClient.cc
//------------------------------------------------------------------------------
#if ORYOL_WINDOWS
#define _WINSOCK_DEPRECATED_NO_WARNINGS (1)
#include <WinSock2.h>
typedef int ssize_t;
#endif
#if ORYOL_POSIX
@mandarinx
mandarinx / README.md
Last active October 4, 2021 11:19
Monospaced console log in Unity3D

Displaying the console log in Unity3D using a monospaced font

I'm on macOS and haven't tried this on Windows. I'm sure it's equally easy to achieve on Windows.

Open Terminal.app and type tail -f ~/Library/Logs/Unity/Editor.log to output the entire editor log to the terminal.

Optionally, you can use grep to filter out certain lines using a regular expression as filter. In this example, I only want the lines that starts with "[MEM]": tail -f ~/Library/Logs/Unity/Editor.log | grep --line-buffered '^\[MEM\]'.

Logging with a monospaced font enables you to output tables and prettify your logs with spaces and tabs, like this: