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
| <beans xmlns="http://www.springframework.org/schema/beans" | |
| xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" | |
| xsi:schemaLocation=" | |
| http://www.springframework.org/schema/beans | |
| http://www.springframework.org/schema/beans/spring-beans.xsd | |
| "> | |
| <bean id="pb" class="java.lang.ProcessBuilder"> | |
| <constructor-arg> | |
| <array value-type="java.lang.String"> | |
| <value>/usr/bin/firefox</value> |
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
| triangularNumbers = [ quot (x^2 + x) 2 | x <- [1..12345] ] | |
| hexSums' :: Int -> [Int] -> [Int] | |
| hexSums' n sumList = | |
| if allZeroes sumList then | |
| sumList | |
| else | |
| zipWith (+) sumList nextList | |
| where | |
| nextList = hexSums' (n+1) (take 12345 nextTriNums) |
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
| sumDiag :: Int -> Int | |
| sumDiag 0 = 1 | |
| sumDiag x = | |
| sumDiag (x-1) + (4 * x') - (12 * x) | |
| where x' = ((x * 2) + 1) ^ 2 | |
| main :: IO() | |
| main = putStrLn (show (sumDiag 500)) |
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
| pascal :: Int -> [Int] | |
| pascal k = iterate pascal' [] !! k | |
| pascal' :: [Int] -> [Int] | |
| pascal' [] = [1] | |
| pascal' xs = [1] ++ zipWith (+) xs (tail xs) ++ [1] | |
| getNumLatticePathsForGrid :: Int -> Int | |
| getNumLatticePathsForGrid n = pascal (n * 2 + 1) !! n |
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 Data.List | |
| products :: [Int] | |
| products = reverse (Data.List.sort [x*y | x<-[100..999], y<-[100..999]]) | |
| isPalindrome :: Int -> Bool | |
| isPalindrome x = (read (reverse (show x)) :: Int) == x | |
| getLargestPalindrome :: [Int] -> Int | |
| getLargestPalindrome xs = |
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
| # Given FitNotes CSV export, plot estimated 1RM | |
| # | |
| # Usage: fitnotes_graph.py <FILE> | |
| # <FILE> is exported csv | |
| # Assumes format: | |
| # ['Date', 'Exercise', 'Category', 'Weight (lbs)', 'Reps', 'Distance', | |
| # 'Distance Unit', 'Time', 'Comment'] | |
| import csv | |
| from datetime import datetime | |
| from dateutil.relativedelta import relativedelta |
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 electrum import util, keystore, bitcoin | |
| import argparse | |
| import sys | |
| import threading | |
| MAX_THREADS=25 | |
| TARGET_ADDR="3CcxyPhyvyc3S9UuPfu42GNZLvVVV11Uk8" | |
| # How many of the address indexes to try. Default to just /0. | |
| # i.e. last digit in derivation path: m/49'/0'/0'/0/0 | |
| MAX_ADDR_IDX=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
| <?xml version="1.0" encoding="UTF-8" ?> | |
| <schema name="gios-stuff" version="0.1"> | |
| <fields> | |
| <!-- Should id be string? --> | |
| <field name="id" type="string" indexed="true" stored="true" required="true"/> | |
| <field name="title" type="textgen" indexed="true" stored="true"/> |
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
| /* | |
| * Copyright (c) 2000 The Regents of the University of California. | |
| * | |
| * See the file "LICENSE" for information on usage and redistribution | |
| * of this file, and for a DISCLAIMER OF ALL WARRANTIES. | |
| */ | |
| #include <linux/kernel.h> | |
| #include <linux/module.h> |
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
| IsNotFibo | |
| IsNotFibo | |
| IsNotFibo | |
| IsNotFibo | |
| IsNotFibo | |
| IsNotFibo | |
| IsNotFibo | |
| IsNotFibo | |
| IsNotFibo | |
| IsNotFibo |
NewerOlder