This file contains hidden or 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
func highlight(conn *irc.Conn, channel string, user string, line string, args []string) { | |
rconn := pool.Get() | |
defer rconn.Close() | |
if !isMod(rconn, channel, user) { | |
log.Printf("User %s tried to access !quote on %s add and wasn't a mod\n", user, channel) | |
return | |
} | |
c := channel[1:] | |
resp, err := twitchClient.GetChannelVideos(c, true, 1) |
This file contains hidden or 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
// Win32 : Minimal VST 2.x Synth host in C++11. | |
// | |
// This is a simplified version of the following project by hotwatermorning : | |
// A sample VST Host Application for C++ Advent Calendar 2013 5th day. | |
// https://github.com/hotwatermorning/VstHostDemo | |
// | |
// Usage : | |
// 1. Compile & Run this program. | |
// 2. Select your VST Synth DLL. | |
// 3. Press QWERTY, ZXCV, etc. |
This file contains hidden or 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
-- haha you can only create sources in lua, python will never be allowed | |
-- because of its dumb global lock | |
obs = obslua | |
source_def = {} | |
source_def.id = "shitty_source" | |
source_def.output_flags = bit.bor(obs.OBS_SOURCE_VIDEO, obs.OBS_SOURCE_CUSTOM_DRAW) | |
source_def.get_name = function() |
This file contains hidden or 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
obs = obslua | |
local bit = require("bit") | |
source_name = "" | |
function resize(pressed) | |
if not pressed then | |
return | |
end |
This file contains hidden or 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
obs = obslua | |
source_name = "" | |
last_text = "" | |
time_format = "" | |
function set_time_text() | |
text = os.date(time_format) | |
if text ~= last_text then |
This file contains hidden or 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
use std::os::raw::{c_int, c_char, c_void}; | |
use std::ptr; | |
use std::ffi::CString; | |
use std::io::{self, Write}; | |
#[repr(C)] // ensures that the memory layout of the struct is the same in Rust as in C. | |
pub struct obs_module_t { | |
pub mod_name: *mut c_char, | |
pub file: *const c_char, | |
pub bin_path: *mut c_char, |
This file contains hidden or 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
extern crate nng; | |
extern crate hidapi; | |
use hidapi::HidApi; | |
use std::os::raw::{c_int, c_char, c_void}; | |
use std::ptr; | |
use std::ffi::CString; | |
use std::io::{self, Write}; | |
use std::process::Command; |
This file contains hidden or 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
extern crate nng; | |
extern crate hidapi; | |
use hidapi::HidApi; | |
use std::os::raw::{c_int, c_char, c_void}; | |
use std::ptr; | |
use std::ffi::CString; | |
use std::io::{self, Write}; | |
use std::process::Command; |
This file contains hidden or 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
# Patches for Qt must be at the very least submitted to Qt's Gerrit codereview | |
# rather than their bug-report Jira. The latter is rarely reviewed by Qt. | |
class Qt < Formula | |
desc "Cross-platform application and UI framework" | |
homepage "https://www.qt.io/" | |
url "https://download.qt.io/official_releases/qt/5.10/5.10.1/single/qt-everywhere-src-5.10.1.tar.xz" | |
mirror "https://www.mirrorservice.org/sites/download.qt-project.org/official_releases/qt/5.10/5.10.1/single/qt-everywhere-src-5.10.1.tar.xz" | |
sha256 "05ffba7b811b854ed558abf2be2ddbd3bb6ddd0b60ea4b5da75d277ac15e740a" | |
head "https://code.qt.io/qt/qt5.git", :branch => "5.10", :shallow => false |
This file contains hidden or 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
class Swig < Formula | |
desc "Generate scripting interfaces to C/C++ code" | |
homepage "http://www.swig.org/" | |
url "https://downloads.sourceforge.net/project/swig/swig/swig-3.0.12/swig-3.0.12.tar.gz" | |
sha256 "7cf9f447ae7ed1c51722efc45e7f14418d15d7a1e143ac9f09a668999f4fc94d" | |
bottle do | |
sha256 "7307b4ffe3222715b2206e6477c5e3022881a730eb95a717d41a3df8e6e20455" => :mojave | |
sha256 "c0e2656fd10d57281280d20ce8bf9a060cf8714f4283dd1dfde383b3688d9ed1" => :high_sierra |