Skip to content

Instantly share code, notes, and snippets.

require 'formula'
class Netpbm < Formula
homepage 'http://netpbm.sourceforge.net'
url 'svn+http://svn.code.sf.net/p/netpbm/code/advanced/', :revision => 1809
version '10.60.05'
# Maintainers: Look at http://netpbm.svn.sourceforge.net/viewvc/netpbm/
# for versions and matching revisions
head 'https://svn.code.sf.net/p/netpbm/code/trunk'
// Copyright (C) 2007 Ruben Smits <ruben dot smits at mech dot kuleuven dot be>
// Version: 1.0
// Author: Ruben Smits <ruben dot smits at mech dot kuleuven dot be>
// Maintainer: Ruben Smits <ruben dot smits at mech dot kuleuven dot be>
// URL: http://www.orocos.org/kdl
// 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
LDFLAGS: -L/usr/local/opt/qt5/lib
CPPFLAGS: -I/usr/local/opt/qt5/include
#include <stdio.h>
#include <stdlib.h>
int main(int argc, char **argv)
{
unsigned int a = atoi(argv[1]);
unsigned int b = atoi(argv[2]);
unsigned int i = a ^ b;
unsigned int c = 0;
#include <TimerOne.h>
#include <ros.h>
#include <rosserial_msgs/Battery.h>
#include <Wire.h>
#define SAMPLING_INTERVAL 500000 /* microseconds */
#define SHUNT_RESISTOR 0.002 /* ohms */
#define cell6_adc_ratio 0.162714237 //ok
#define cell5_adc_ratio 0.195710113 //ok
#include <string>
#include <iostream>
#include <serial/serial.h>
#include <vector>
#include <boost/algorithm/string/predicate.hpp>
#include <boost/algorithm/string.hpp>
#include <signal.h>
#include <stdio.h>
using std::string;
@spaghetti-
spaghetti- / np.pl
Last active August 29, 2015 14:01
applescript based now playing for irssi
use strict;
use vars qw($VERSION %IRSSI);
use Irssi;
$VERSION = '1.00';
%IRSSI = (
contact => 'dev@xrng.net',
name => 'now playing for iTunes on OSX',
license => 'Unlicense',
);
use std::f64;
fn main(){
let mut i = 10;
while i >= 1 {
println!("cock");
i -= 1;
}
println!("{}", sign(3));
println!("{}", rad2deg(angle((2.0, 2.0))));
def blocking_fn():
..
def stop_fn():
...request_stop()
def main():
signal.signal(signal.SIGINT, stop_fn)
t = threading.Thread(target=blocking_fn)
>>> Recording net-misc/openvpn in "world" favorites file...
* Messages for package net-misc/openvpn-2.3.2:
* WARNING: The openvpn init script has changed
*
* The openvpn init script expects to find the configuration file
* openvpn.conf in /etc/openvpn along with any extra files it may need.
*
* To create more VPNs, simply create a new .conf file for it and