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
#Extract of R code | |
#This doesn't work properly | |
#Need to know how many levels | |
nl <- length(levels(datatable$Grouping)) | |
#then how many per graph | |
ng = 8 | |
#Can then loop | |
for (i in 1:ceiling(nl/ng)) { |
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/python | |
#modified version of old import.py | |
# Lastscrape -- recovers data from libre.fm | |
# Copyright (C) 2009 Free Software Foundation, Inc | |
# | |
# This program is free software: you can redistribute it and/or modify | |
# it under the terms of the GNU General Public License as published by | |
# the Free Software Foundation, either version 3 of the License, or |
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
diff -crB stfl-0.22-orig/Makefile stfl-0.22/Makefile | |
*** stfl-0.22-orig/Makefile 2012-08-27 10:41:35.000000000 +0100 | |
--- stfl-0.22/Makefile 2012-08-27 10:59:33.000000000 +0100 | |
*************** | |
*** 20,33 **** | |
include Makefile.cfg | |
- export CC = gcc -pthread | |
export CFLAGS += -I. -Wall -Os -ggdb -D_GNU_SOURCE -fPIC |
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
--- | |
interface.c | 8 +++----- | |
1 file changed, 3 insertions(+), 5 deletions(-) | |
diff --git a/interface.c b/interface.c | |
index 6b28a51..78ca3c2 100644 | |
--- a/interface.c | |
+++ b/interface.c | |
@@ -289,7 +289,7 @@ void UIDisplayItem (struct newsitem * current_item, struct feed * current_feed, |
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
-- pinboard username and password | |
property pbuser : "" | |
property pbpass : "" | |
--Download bookmarks via curl to desktop (because can use shortcut when selecting file for import via UI scripting) | |
do shell script ("cd ~/Desktop; curl https://" & pbuser & ":" & pbpass & "@pinboard.in/export/ -o pinboard.html") | |
--import bookmarks via UI scripting | |
tell application "System Events" |
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
diff --git a/sic.c b/sic.c | |
index d93c2ec..bc09eee 100644 | |
--- a/sic.c | |
+++ b/sic.c | |
@@ -118,7 +118,7 @@ parsesrv(char *cmd) { | |
par = skip(cmd, ' '); | |
txt = skip(par, ':'); | |
trim(par); | |
- if(!strcmp("PONG", cmd)) | |
+ if(!strcmp("PONG", cmd) || !strcmp("QUIT", cmd) || !strcmp("JOIN", cmd)) |
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/perl -s | |
######################################################################### | |
# | |
# TTYtter v2.1 (c)2007-2012 cameron kaiser (and contributors). | |
# all rights reserved. | |
# http://www.floodgap.com/software/ttytter/ | |
# | |
# distributed under the floodgap free software license | |
# http://www.floodgap.com/software/ffsl/ | |
# |
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
$NetBSD$ | |
--- config.h.orig 2009-09-17 06:44:28.000000000 +0000 | |
+++ config.h | |
@@ -61,6 +61,7 @@ struct newsitem { | |
struct newsdata { | |
struct feed *parent; | |
int readstatus; /* 0: unread, 1: read */ | |
+ int prevreadstatus; /* 0: unread, 1: read */ | |
char *title; |
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
<?xml version="1.0"?> | |
<!-- Atom to RSS 1.0 Transformation, written by Rene Puls (rpuls@kcore.de) --> | |
<!-- Snownews filter command for this extension: "xsltproc /path/to/atom2rss -" --> | |
<xsl:stylesheet version="1.0" | |
xmlns:xsl="http://www.w3.org/1999/XSL/Transform" | |
xmlns:atom="http://www.w3.org/2005/Atom" | |
xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" |
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
$ Patch for daylight savings time | |
--- src/recur.cpp.orig | |
+++ src/recur.cpp | |
@@ -215,6 +215,7 @@ ISO8601d getNextRecurrence (ISO8601d& current, std::string& period) | |
int m = current.month (); | |
int d = current.day (); | |
int y = current.year (); | |
+ ISO8601d recurrence_date; | |
// Some periods are difficult, because they can be vague. |