Orthodox C++ (sometimes referred as C+) is minimal subset of C++ that improves C, but avoids all unnecessary things from so called Modern C++. It's exactly opposite of what Modern C++ suppose to be.
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
hand_shutdown "key 290 mod1" | |
hand_capmouse "key 291 mod1" | |
hand_fullscr "key 13 mod2" | |
hand_pause "key 19 mod2" | |
hand_mapper "key 282 mod1" | |
hand_speedlock "key 293 mod2" | |
hand_recwave "key 287 mod1" | |
hand_caprawmidi "key 289 mod1 mod2" | |
hand_scrshot "key 286 mod1" | |
hand_video "key 286 mod1 mod2" |
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 <SFML/Audio.h> | |
#include <SFML/Graphics.h> | |
int main() | |
{ | |
sfVideoMode mode = {800, 600, 32}; | |
sfRenderWindow* window; | |
sfTexture* texture; | |
sfSprite* sprite; | |
sfFont* font; |
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/bin/env bash | |
# Allows you to test the create-project process using your local | |
# checked-out copy of the skeleton as the source. You MUST commit the | |
# changes you want to test to a git branch! You MUST name that branch | |
# as the first argument and the destination path to set up the fresh | |
# copy into as the second. | |
# | |
# Usage: | |
# - Place this script in your package's root directory and make it executable. | |
# - Set the PACKAGE_NAME variable below to match your composer.json's `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
var reducePath = function (x, y, entryOffset, rangeOffset, entryRequiredWall, entryDisallowedWall) { | |
var rangeEntryRequiredDirections = [entryDisallowedWall, OppositeDirections[entryDisallowedWall]]; | |
var rangeEntryDisallowedDirections = [entryRequiredWall, OppositeDirections[entryRequiredWall]]; | |
var endDisallowedDirections = [OppositeDirections[entryRequiredWall], OppositeDirections[entryDisallowedWall]]; | |
var endRequiredDirections = [entryRequiredWall, entryDisallowedWall]; | |
var tile = tiles[x][y]; | |
var color = tile.color; | |
var entry = tiles[x+entryOffset[0]][y+entryOffset[1]]; |
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
@mixin linksColors-lvhaf($link, $visited, $hover, $active, $focus) { | |
a { transition:.2s; padding:1%; margin:-1%; text-decoration:underline; | |
& { color:$link; } | |
&:visited { color:$visited; } | |
&:hover { color:$hover; text-decoration:none; } | |
&:active { color:$active; outline:#ccc 1px dotted; } | |
&:focus { color:$focus; } | |
} | |
} |
Based on this blog.
This guide shows you how to setup emacs to render a README.md very similarly to how github will do it; except it also works offline. There are no dependencies that can't be easily installed via the package manager on ubuntu.
- Install emacs24, the markdown mode, and pandoc. You may need the packages
emacs
,emacs-goodies-el
, andpandoc
. - Get a style sheet that resembles the github style from this gist and store it. I put it in
~/emacs.d/github-pandoc.css
.
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
var gulp = require('gulp'), | |
gutil = require('gulp-util'), | |
sass = require('gulp-sass'), | |
csso = require('gulp-csso'), | |
uglify = require('gulp-uglify'), | |
jade = require('gulp-jade'), | |
concat = require('gulp-concat'), | |
livereload = require('gulp-livereload'), // Livereload plugin needed: https://chrome.google.com/webstore/detail/livereload/jnihajbhpnppcggbcgedagnkighmdlei | |
tinylr = require('tiny-lr'), | |
express = require('express'), |
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
// Just before switching jobs: | |
// Add one of these. | |
// Preferably into the same commit where you do a large merge. | |
// | |
// This started as a tweet with a joke of "C++ pro-tip: #define private public", | |
// and then it quickly escalated into more and more evil suggestions. | |
// I've tried to capture interesting suggestions here. | |
// | |
// Contributors: @r2d2rigo, @joeldevahl, @msinilo, @_Humus_, | |
// @YuriyODonnell, @rygorous, @cmuratori, @mike_acton, @grumpygiant, |