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) 2011 Nathan Osman | |
// | |
// Permission is hereby granted, free of charge, to any person obtaining a copy | |
// of this software and associated documentation files (the "Software"), to | |
// deal in the Software without restriction, including without limitation the | |
// rights to use, copy, modify, merge, publish, distribute, sublicense, and/or | |
// sell copies of the Software, and to permit persons to whom the Software is | |
// furnished to do so, subject to the following conditions: | |
// | |
// The above copyright notice and this permission notice shall be included in |
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
// Compile for the current platform with: | |
// go build dnsupdate.go | |
// Cross-compile for Windows with: | |
// GOOS=windows GOARCH=amd64 go build dnsupdate.go | |
package main | |
import ( | |
"fmt" | |
"net/http" |
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
test1 | |
test2 | |
... |
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
/** | |
* Simplify the process of setting and resetting timeouts. | |
* @param fn callback to invoke | |
* @param delay time in MS | |
* | |
* Any additional parameters are passed to the callback when invoked. | |
*/ | |
function Timeout(fn, delay) { | |
var timeout = null, | |
args = $.map(arguments, function(v, i) { |
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
// +build windows | |
package main | |
import ( | |
"fmt" | |
"syscall" | |
"unicode/utf16" | |
"unsafe" | |
) |
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 python2 | |
from argparse import ArgumentParser | |
from apt_pkg import init_system, version_compare | |
if __name__ == '__main__': | |
parser = ArgumentParser(description="Sort a list of version numbers") | |
parser.add_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
cmake_minimum_required(VERSION 2.8.9) | |
project(printpath) | |
add_executable(printpath path.cpp) | |
set(ENV{PATH} "C:/Some/Path;$ENV{PATH}") | |
add_custom_target(show "$<TARGET_FILE:printpath>") | |
add_dependencies(show printpath) |
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
cmake_minimum_required(VERSION 2.8.9) | |
project(gtktest LANGUAGES C) | |
find_package(PkgConfig REQUIRED) | |
pkg_check_modules(GTK3 REQUIRED gtk+-3.0) | |
include_directories(${GTK3_INCLUDE_DIRS}) | |
add_executable(gtktest main.c) | |
target_link_libraries(gtktest ${GTK3_LIBRARIES}) |
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
cmake_minimum_required(VERSION 3.1.0 FATAL_ERROR) | |
project(emailer) | |
set(CMAKE_INCLUDE_CURRENT_DIR ON) | |
set(CMAKE_AUTOMOC ON) | |
find_package(Qt5Network 5.4 REQUIRED) | |
add_executable(emailer emailer.cpp) | |
set_property(TARGET emailer PROPERTY CXX_STANDARD 11) |
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: Nathan Osman <nathan@quickmediasolutions.com> | |
pkgname='qhttpengine' | |
pkgver='0.1.0' | |
pkgrel=1 | |
pkgdesc="Simple and secure HTTP server for Qt applications" | |
arch=('i686' 'x86_64') | |
license=('MIT') | |
url="http://github.com/nitroshare/qhttpengine" | |
depends=('qt5-base') |