I recently found a nice emacs-mode, [irony-mode], which can be used with [company-mode], [flycheck-mode], and [eldoc-mode]. It works nicely with CMake-based projects. The document contains a list of instructions for setting things up. I assume that you're using a fresh-installed Ubuntu-12.04.5 (64-bit). It uses [Lean theorem prover][lean] as an example project.
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
from /usr/include/c++/5.1.0/string:41, | |
from /home/agauniyal/exercism/cpp/bob/bob.cpp:1, | |
from /home/agauniyal/exercism/cpp/bob/bob_test.cpp:1: | |
/usr/include/c++/5.1.0/exception:60:9: note: ‘std::exception’ | |
class exception | |
^ | |
In file included from /usr/include/boost/throw_exception.hpp:42:0, | |
from /usr/include/boost/smart_ptr/shared_ptr.hpp:27, | |
from /usr/include/boost/shared_ptr.hpp:17, | |
from /usr/include/boost/test/predicate_result.hpp:24, |
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
"scripts": { | |
"test": "npm run lint", | |
"lint": "csslint --format=compact css/*.css", | |
"clean": "rimraf css/", | |
"build:sass2css": "npm run clean && node-sass sass/ -o css/", | |
"build:prefix": "cd css/ && autoprefixer-cli -b 'last 2 versions' *.css", | |
"build:minify": "cd css/ && cat normalize.css `ls -I normalize.css -I main.min.css` | cleancss -o main.min.css", | |
"build:clean": "cd css/ && find . -type f ! -name '*.min.css' -delete", | |
"build": "npm run build:sass2css && npm run build:prefix && npm run build:minify && npm run build:clean", | |
"build:watch": "watch 'npm run build' sass/" |
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 <iostream> | |
#include <string> | |
#include <cstring> | |
extern "C" { | |
#include <unistd.h> | |
#include <sys/socket.h> | |
#include <sys/types.h> | |
#include <netdb.h> | |
#include <arpa/inet.h> |
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
{ | |
"env": { | |
"node" : true, | |
"es6" : true, | |
"mocha": true | |
}, | |
"rules": { | |
"accessor-pairs": "error", | |
"array-bracket-spacing": [2, "never"], | |
"array-callback-return": "error", |
I hereby claim:
- I am agauniyal on github.
- I am agauniyal (https://keybase.io/agauniyal) on keybase.
- I have a public key ASDRMAmVApQB2qu9Z0kiInRy44brEzO5A1PYs7tGjOdxVAo
To claim this, I am signing this object:
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
// g++ test.cpp --std=c++11 -lpthread -O2 | |
//#ifdef WIN32 <- stdafx breaks this ifdef... | |
//#include "stdafx.h" | |
//#endif | |
#include <iostream> | |
#include <atomic> | |
#include <thread> | |
#include <vector> |
It's a common confusion about terminal colours... Actually we have this:
- plain ascii
- ansi escape codes (16 colour codes with bold/italic and background)
- 256 colour palette (216 colours + 16 ansi + 24 gray) (colors are 24bit)
- 24bit true colour ("888" colours (aka 16 milion))
printf "\x1b[${bg};2;${red};${green};${blue}m\n"
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
{ | |
"editor.fontFamily": "'Droid Sans Mono', monospace", | |
"editor.fontSize": 13, | |
"editor.lineHeight": 20, | |
"editor.insertSpaces": false, | |
"editor.detectIndentation": true, | |
"editor.roundedSelection": false, | |
"editor.selectionHighlight": false, | |
"editor.scrollBeyondLastLine": false, | |
"editor.wrappingColumn": 120, |
Implementation of REST Webservice for the P2PSP media sources.
Crossroads is a REST api server capable of creating and managing P2PSP channels. It is written in Javascript and uses Node runtime to achieve low-overhead request-response model. In current implementation, it provides functionality for creating, editing and deletion of channels by user and manages all processes by itself in background. The processes are spawned and killed in accordance with their lifetime and proper care is taken to avoid any sort of shell injection or
OlderNewer