Skip to content

Instantly share code, notes, and snippets.

View tallica's full-sized avatar

Michał Lipski tallica

  • Brandwatch
  • Poland
View GitHub Profile
#[cfg(target_os = "macos")]
#[link(name = "Carbon", kind = "framework")]
extern {
fn RegisterEventHotKey(inHotKeyCode: u32, inHotKeyModifiers: u32, inHotKeyID: EventHotKeyID, inTarget: EventTargetRef, inOptions: OptionBits) -> OSStatus;
}
@tallica
tallica / message.hpp
Created November 7, 2017 23:52 — forked from mashiro/message.hpp
zeromq + msgpack
#include <string>
#include <ctime>
#include <msgpack.hpp>
struct message
{
std::string tag;
std::time_t time;
std::string text;
MSGPACK_DEFINE(tag, time, text);
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
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}"
@tallica
tallica / gtkrc
Last active September 5, 2022 06:22
gtk2 dark theme
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
@tallica
tallica / audacious.coffee
Created May 13, 2012 15:32
Audacious nodejs
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'
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
@tallica
tallica / Makefile
Created April 19, 2012 11:22
audacious/src/Makefile
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
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);
})