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 <stdio.h> | |
#include <string.h> | |
#include <stdlib.h> | |
#include "sqlite3.h" | |
using namespace std; |
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 async = require('async'); | |
var obj = ["a", "b", "c"]; | |
function done() | |
{ | |
console.log("Done"); | |
} | |
function output(key, n, cb) | |
{ |
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 async = require('async'); | |
var obj = ["a", "b", "c"]; | |
function done() | |
{ | |
console.log("Done"); | |
} | |
function output(key, n, cb) | |
{ |
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 <vector> | |
#define CASE 1 | |
class A { | |
public: | |
A(const std::string& _s): s(_s) { | |
} |
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 "mainwindow.h" | |
#include <QSlider> | |
MainWindow::MainWindow(QWidget *parent) : | |
QMainWindow(parent) | |
{ | |
setStyleSheet("QSlider::handle:horizontal {" | |
"background-image: url(/usr/share/wallpapers/stripes.png);" | |
"}"); |
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 <vector> | |
#include <string> | |
#include <algorithm> | |
int main() { | |
std::string s = "13579"; | |
int result = 0; | |
std::for_each(s.begin(), s.end(), [&](char n){result = result * 10 + n - '0'; }); |
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
#!/bin/bash | |
# Libtool does not support spaces in dependency_libs entries so we won't worry | |
# overly about them either. | |
NEWLINE=" | |
" | |
has() { | |
[[ " ${*:2} " == *" $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
#include <QObject> | |
#include <QDebug> | |
class FactoryBase | |
{ | |
public: | |
virtual QObject* create() = 0; | |
}; | |
QMap<QString, FactoryBase*> factoryMap; |
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
/* | |
* Copyright (C) 2015~2015 by CSSlayer | |
* wengxt@gmail.com | |
* | |
* This library is free software; you can redistribute it and/or modify | |
* it under the terms of the GNU Lesser General Public License as | |
* published by the Free Software Foundation; either version 2 of the | |
* License, or (at your option) any later version. | |
* | |
* This library is distributed in the hope that it will be useful, |
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
# - Try to find the GETTEXT-PO libraries | |
# Once done this will define | |
# | |
# GETTEXTPO_FOUND - system has GETTEXT-PO | |
# GETTEXTPO_INCLUDE_DIR - the GETTEXT-PO include directory | |
# GETTEXTPO_LIBRARIES - GETTEXT-PO library | |
# | |
# Copyright (c) 2012 Yichao Yu <yyc1992@gmail.com> | |
# Copyright (c) 2015 Weng Xuetian <wengxt@gmail.com> | |
# |
OlderNewer