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> | |
template <typename T> | |
void func(T& t) | |
{ | |
t.method(); | |
} | |
struct A { void method() { std::cout <<"a"; } }; | |
struct B { int justSomeValue; }; |
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> | |
template <typename T> | |
void func(T& t) | |
{ | |
t.method(); | |
} | |
struct A { void method() { std::cout <<"a"; } }; | |
struct B { int justSomeValue; }; |
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
struct Node | |
{ | |
Node* child; | |
}; | |
// void gatherDescendants(std::vector<Node*>& target, Node* root) | |
// { | |
// if (root->child) | |
// { | |
// target.push_back(root->child); |
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
# Maintainer: Pavlo Ilin <ilin.pa@gmail.com> | |
pkgname=gigolo-git | |
pkgver=gigolo.0.4.1.r300.g3a68461 | |
pkgrel=1 | |
epoch= | |
pkgdesc="Frontend to manage connections to remote filesystems using GIO/GVFS" | |
arch=(i686 x86_64) | |
url="http://goodies.xfce.org/projects/applications/gigolo" | |
license=('GPL2') | |
groups=('xfce4-git') |
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
pkgname=latex-pscyr | |
pkgver=0.4d.beta9 | |
pkgrel=2 | |
pkgdesc='Cyrillyc fonts package for (La)TeX' | |
arch=(any) | |
url=http://www.lisin.ru/2008/10/17/download-pscyr/ | |
license=(GPL) | |
install=pscyr.install | |
depends=(texlive-core) | |
source=( |
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 shlex | |
from subprocess import Popen, PIPE | |
import re | |
from pprint import pprint | |
import sys | |
from sys import stdout | |
from sys import argv |
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
# Get file compile ooptions from ino database | |
# | |
# Usage within SublimeClang: | |
# "sublimeclang_options_script": "python ${project_path:ino_compile_options.py}", | |
# "sublimeclang_options": | |
# [ | |
# "-Wno-attributes", | |
# "-Wno-builtin-requires-header", | |
# "-Wno-unused-command-line-argument" | |
# ] |
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
# Based on @berenm's pull request https://github.com/quarnster/SublimeClang/pull/135 | |
# Create the database with cmake with for example: cmake -DCMAKE_EXPORT_COMPILE_COMMANDS=ON .. | |
# or you could have set(CMAKE_EXPORT_COMPILE_COMMANDS ON) in your CMakeLists.txt | |
# Usage within SublimeClang: | |
# "sublimeclang_options_script": "python ${home}/code/cmake_options_script.py ", | |
# 2013.01.26: Pavlo Ilin | |
# - Removed the usage of cache file - if cmake-scripts are changed often, | |
# cache file quickly becomes old and wrong. | |
# - Will recursively go up in directory tree and try to find compile_commands.json |
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++ -g -Wall -std=c++11 1.cpp | |
#include <iostream> | |
#include <vector> | |
#include <functional> | |
typedef std::vector<std::function<int(int)> > VFII; | |
VFII gen() | |
{ |
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
--- /Users/pavel/tmp/release.asm | |
+++ /Users/pavel/tmp/release_vol.asm | |
@@ -37,28 +37,31 @@ | |
Lfunc_begin0: | |
.loc 1 34 0 @ /Users/pavel/code/NXEngine-iOS/iOS/CaveStory/../../sound/pxt.cpp:34:0 | |
@ BB#0: | |
+ .loc 1 33 28 prologue_end @ /Users/pavel/code/NXEngine-iOS/iOS/CaveStory/../../sound/pxt.cpp:33:28 | |
+ sub sp, #4 | |
@DEBUG_VALUE: GETWAVEBYTE:wave <- R0+0 | |
@DEBUG_VALUE: GETWAVEBYTE:out <- R1+0 |
NewerOlder