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
#[cfg(target_os = "macos")] | |
#[link(name = "Carbon", kind = "framework")] | |
extern { | |
fn RegisterEventHotKey(inHotKeyCode: u32, inHotKeyModifiers: u32, inHotKeyID: EventHotKeyID, inTarget: EventTargetRef, inOptions: OptionBits) -> OSStatus; | |
} |
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 <string> | |
#include <ctime> | |
#include <msgpack.hpp> | |
struct message | |
{ | |
std::string tag; | |
std::time_t time; | |
std::string text; | |
MSGPACK_DEFINE(tag, time, text); |
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
plugin-init.cc:78:55: error: constexpr variable 'table' must be initialized by a constant expression | |
static constexpr aud::array<PluginType, PluginParams> table = { | |
^ ~ | |
../libaudcore/templates.h:110:16: note: non-constexpr function 'forward<PluginParams>' cannot be used in a constant expression | |
vals { std::forward<Args> (args) ...} {} | |
^ | |
plugin-init.cc:78:63: note: in call to 'array(PluginParams("transport", MultiFuncs({ nullptr, nullptr })), PluginParams("playlist", MultiFuncs({ nullptr, nullptr })), PluginParams("input", MultiFuncs({ nullptr, nullptr })), PluginParams("effect", MultiFuncs({ effect_plugin_start, effect_plugin_stop })), PluginParams("output", SingleFuncs({ output_plugin_get_current, output_plugin_set_current })), PluginParams("visualization", MultiFuncs({ vis_plugin_start, vis_plugin_stop })), PluginParams("general", MultiFuncs({ general_plugin_start, general_plugin_stop })), PluginParams("interface", SingleFunc |
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
APP_FULL_NAME="Passenger on Nginx" | |
APP_NAME="passenger" | |
APP_SHA="433d36f23bfb5edf3a020c6faf9c42de8f5d6161" | |
APP_VERSION="4.0.2" | |
APP_HTTP_PATH="${MAIN_SOURCE_REPOSITORY}${APP_NAME}-${APP_VERSION}.tar.gz" | |
APP_REQUIREMENTS="zlib bzip2 libiconv libxml2 gmake libtool libgpg-error libgcrypt libxslt yaml curl libffi perl openssl python-legacy scons ruby" | |
APP_CONFIGURE_SCRIPT="ignore" | |
APP_MAKE_METHOD="${PRINTF_BIN} 'gem: --no-ri --no-rdoc' > ${HOME}/.gemrc; ${PREFIX}/bin/gem install bundler rack --force" | |
APP_COMPILER_ARGS="-pthread" | |
APP_AFTER_PATCH_CALLBACK="${CP_BIN} -r ${CACHE_DIR}cache/${APP_NAME}-${APP_VERSION}/${APP_NAME}-${APP_VERSION} ${PREFIX}/lib/${APP_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
gtk-color-scheme = "base_color:#4F524F\nfg_color:#eeeeec\ntooltip_fg_color:#eeeeee\nselected_bg_color:#3465a4\nselected_fg_color:#eeeeec\ntext_color:#EEEEEC\nbg_color:#363B3B\ntooltip_bg_color:#000000" | |
gtk-auto-mnemonics = 1 | |
style "default" { | |
xthickness = 1 | |
ythickness = 1 | |
####################### | |
# Style Properties |
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
dbus = require 'node-dbus' | |
class Audacious | |
common_msg = (memb, cb) -> | |
cb Object.create dbus.DBusMessage, | |
destination: | |
value: 'org.atheme.audacious' | |
path: | |
value: '/org/atheme/audacious' |
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
def add_route | |
path = name | |
opts = route_options | |
Rails.application.routes.disable_clear_and_finalize = true | |
Rails.application.routes.draw do | |
get path, opts | |
end | |
Rails.application.routes.finalize! | |
Rails.application.routes.disable_clear_and_finalize = false | |
end |
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
SUBDIRS = libaudcore libaudgui libaudtag audacious | |
audacious_deps = libaudcore libaudgui libaudtag | |
include ../extra.mk | |
ifeq ($(USE_EGGSM),yes) | |
SUBDIRS := libeggsmclient ${SUBDIRS} | |
audacious_deps := libeggsmclient ${audacious_deps} | |
endif |
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
require 'execjs' | |
require 'open-uri' | |
source = open('https://raw.github.com/visionmedia/jade/master/jade.min.js').read | |
context = ExecJS.compile(source) | |
code = <<-CODE | |
(function(content, options) { | |
var jade = require("jade"); | |
return jade.render(content, options); | |
}) |