Value | Color |
---|---|
\e[0;30m | Black |
\e[0;31m | Red |
\e[0;32m | Green |
\e[0;33m | Yellow |
\e[0;34m | Blue |
\e[0;35m | Purple |
This file contains 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 <stdio.h> | |
#include <stdlib.h> | |
#include <string.h> | |
// simple merge sort with 2n space requirement | |
#define N 20 | |
#define A {2, 18, 4, 20, 13, 11, 14, 9, 17, 15, 3, 12, 7, 1, 8, 6, 19, 5, 10, 16} | |
int merge(int*, int); |
This file contains 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
def italic(f): | |
def wrapper(blah): | |
return "<i>{0}</i>".format(f(blah)) | |
return wrapper | |
@italic | |
def repeat_three_times(blah): | |
return (str(blah)+' ') * 3 | |
This file contains 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
Info: Preparing Star::Root... | |
Info: Loading Star::Configuration from '..\starbound.config' | |
Info: Done preparing Star::Root. | |
Info: Client version 'Beta v. Irritated Koala' '616' '418' | |
Info: Starting from the title screen | |
Info: Initialized SDL | |
Info: Initialized SDL Video | |
Info: Initialized SDL Joystick | |
Info: Initialized SDL Sound | |
Info: Opened default audio device with 44khz / 16 bit stereo audio, 2048 sample size buffer |
This file contains 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
body { | |
background-color: pink !important; | |
} |
This file contains 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 pygame | |
import os, sys | |
width, height = 400, 400 | |
os.environ['SDL_VIDEO_CENTERED'] = '1' | |
screen = pygame.display.set_mode((width, height)) | |
class Core(object): | |
def __init__(self, surface, name): | |
pygame.display.set_caption(name) |
This file contains 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/local/bin/python3 | |
''' | |
usage: $ ./rainbower.py [-t [FRAMES FPS]] [-v] [-f FORMAT] [-o OUTFILE] your text here | |
outputs html by default. | |
''' | |
import math | |
debug = False |
This file contains 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
[fixedwindow.cpp:2956]: interface/provinceview.gui: Missing Icon 'current_building' in window 'new_buildings_entry2'. | |
[fixedwindow.cpp:2956]: interface/provinceview.gui: Missing InstantTextBox 'mills_cost' in window 'new_buildings_entry2'. | |
[fixedwindow.cpp:2956]: interface/provinceview.gui: Missing InstantTextBox 'farm_estate_cost' in window 'new_buildings_entry2'. | |
[fixedwindow.cpp:2956]: interface/provinceview.gui: Missing InstantTextBox 'tradecompany_cost' in window 'new_buildings_entry2'. | |
[fixedwindow.cpp:2956]: interface/provinceview.gui: Missing InstantTextBox 'plantations_cost' in window 'new_buildings_entry2'. | |
[fixedwindow.cpp:2956]: interface/provinceview.gui: Missing InstantTextBox 'textile_cost' in window 'new_buildings_entry2'. | |
[fixedwindow.cpp:2956]: interface/provinceview.gui: Missing InstantTextBox 'weapons_cost' in window 'new_buildings_entry2'. | |
[fixedwindow.cpp:2956]: interface/provinceview.gui: Missing InstantTextBox 'wharf_cost' in window 'new_buildings_entry2'. |
This file contains 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
diff --git a/common/institutions/00_Core.txt b/common/institutions/00_Core.txt | |
index 3117177..13b93bc 100644 | |
--- a/common/institutions/00_Core.txt | |
+++ b/common/institutions/00_Core.txt | |
@@ -4388,12 +4388,12 @@ global_trade = { | |
scale = yes | |
force_potential = yes # Hide the this modifier when potential is false | |
potential = { | |
- NOT = { has_building = trade_lvl_1 } | |
+ NOT = { has_building = marketplace } |
This file contains 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
<!DOCTYPE html> | |
<html> | |
<body> | |
<script src="https://cdnjs.cloudflare.com/ajax/libs/regl/1.3.11/regl.js"></script> | |
<script> | |
const regl = createREGL({ extensions: ['WEBGL_depth_texture'] }); | |
/* creating the following texture warns in the console: | |
regl.js:3009 WebGL: INVALID_OPERATION: texImage2D: format can not be set, only rendered to |
OlderNewer