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
from chronoslnxlib.core import * | |
def predict_voc(cur_date): | |
cycles = date_to_moon_cycles(cur_date) | |
moon_pos = swisseph.calc_ut(datetime_to_julian(cur_date), swisseph.MOON)[0] | |
closest_sign = (( moon_pos // 30 ) + 1) * 30 | |
lower_sign = ( moon_pos // 30 ) * 30 | |
#print(moon_pos, closest_sign) | |
lower_cycles = cycles+(angle_sub(lower_sign, moon_pos)/360) | |
cycles += (closest_sign - moon_pos) / 360 |
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
#!/bin/bash | |
if [[ -z $@ ]]; then | |
echo 'packages list is missed' | |
echo 'run ./import-to-aur4.sh pack1 pack2 pack3' | |
exit | |
fi | |
mkdir aur4 | |
cd aur4 |
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
#!/usr/bin/openrc-run | |
depend() { | |
need localmount | |
after net | |
} | |
start() { | |
/usr/lib/systemd/scripts/dkms start | |
} |
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
from lxml import etree | |
cards="http://yugioh.wikia.com/api.php?format=xml&action=query&list=categorymembers&cmtitle=Category:OCG_cards&cmprop=title&cmlimit=5000" | |
ignore=set(["List of unnamed cards", "List of unseen cards"]) | |
cmcontinue="" | |
titles=[] | |
querycount=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
#!/usr/bin/env python | |
""" | |
ODT2PANDOC | |
========== | |
ODT2PANDOC is a slight variant of ODT2TXT. Right now, the only differences are that it generates ATX style headers and uses *asterisks* for italics, neither of which is in any way specific to pandoc's extended markdown. | |
ODT2TXT | |
======= |
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
import os | |
import json | |
#import uuid | |
from urllib.parse import urlparse | |
import xml.etree.ElementTree as ET | |
from datetime import datetime, timedelta | |
#http://stackoverflow.com/questions/12589952/convert-microsecond-timestamp-to-datetime-in-python | |
epoch = datetime(1970, 1, 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
/* Colors */ | |
.captions { | |
background:grey; | |
} | |
.carousel .controls, .carousel .panels { | |
background:pink; | |
border-color:black; | |
} |
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
# Contributer: [email protected] | |
pkgname=pdfviewer | |
pkgver=0.7 | |
pkgrel=3 | |
pkgdesc="Lightweight Qt-only PDF viewer" | |
arch=('i686' 'x86_64') | |
url="http://opendesktop.org/content/show.php/Pdf+Viewer?content=149637" | |
license=('GPL') | |
depends=('qt4' 'poppler-qt') |
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
diff -aur openastro.org-1.1.38.orig/openastro openastro.org-1.1.38/openastro | |
--- openastro.org-1.1.38.orig/openastro 2013-01-09 16:45:06.459729587 -0800 | |
+++ openastro.org-1.1.38/openastro 2013-01-09 17:50:34.637738525 -0800 | |
@@ -49,7 +49,10 @@ | |
VERSION='1.1.38' | |
#directories | |
-DATADIR=os.path.join(sys.prefix,'share','openastro.org') | |
+if LOCAL: | |
+ DATADIR=os.path.dirname(__file__) |
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
#!/bin/sh | |
for i in $(seq "$2" "$3") | |
do | |
which "python${1}.${i}" && exit 0 | |
done | |
which "python${1}" || echo "$PYTHONBIN" |