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 | |
""" | |
pmath [options] [statements...] | |
A simple script for performing math in the terminal, using Python functions and | |
syntax. I created this when I discovered how hard it was to get a cube root | |
using Bash or bc. | |
Note that 'from __future__ import division' is called, so '/' is float division, | |
and '//' is integer division. |
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
#[warn(non_camel_case_types)]; | |
/* | |
Euler Challenge #70 | |
Euler's Totient function, φ(n) [sometimes called the phi function], is used to determine the number of positive numbers less than or equal to n which are relatively prime to n. For example, as 1, 2, 4, 5, 7, and 8, are all less than nine and relatively prime to nine, φ(9)=6. | |
The number 1 is considered to be relatively prime to every positive number, so φ(1)=1. | |
Interestingly, φ(87109)=79180, and it can be seen that 87109 is a permutation of 79180. |
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
import logging | |
from delancie.backend import DelancieBackend | |
from dd.utils.cli import parse_date | |
from dd.utils.context.aggr_metric import AggrMetricService | |
from delancie.tasks.marlo_backfill import MarloBackfill, MarloBackfillJob, DEFAULT_TIMEOUT | |
log = logging.getLogger("dd.delancie.tasks.marlo_backfill") |
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/PKGBUILD b/PKGBUILD | |
index 90322d4..7f6c533 100644 | |
--- a/PKGBUILD | |
+++ b/PKGBUILD | |
@@ -1,15 +1,15 @@ | |
# Maintainer: Ashley Towns <mail(at)ashleytowns(dot)id(dot)au> | |
-_version=DEVELOPMENT-SNAPSHOT-2016-03-16-a | |
+_version=DEVELOPMENT-SNAPSHOT-2016-04-12-a | |
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
#Maintainer: Wendell <wackywendell@gmail.com> | |
pkgname=reduce | |
pkgver=3.23.130521 | |
pkgrel=1 | |
pkgdesc="Reduce Software for Adding Hydrogens" | |
url="http://kinemage.biochem.duke.edu/software/reduce.php" | |
license=('unknown') | |
arch=('i686' 'x86_64') | |
depends=() | |
makedepends=('make') |
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
<blank> |
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
{ | |
"metadata": { | |
"name": "", | |
"signature": "sha256:d6c1300ee2b30f10905ed4d219e15548afa126b2112d2ed0d6e8f4c157724905" | |
}, | |
"nbformat": 3, | |
"nbformat_minor": 0, | |
"worksheets": [ | |
{ | |
"cells": [ |
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
/// A simple counter. | |
#[warn(non_camel_case_types)] | |
#[warn(unnecessary_qualification)] | |
#[warn(non_uppercase_statics)] | |
#[warn(missing_doc)] | |
extern crate collections; | |
use collections::TreeMap; |
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
NewerOlder