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
/** Woo 3.3 removed the ability to crop the shop_single image in the settings. | |
* So we set its size here. | |
* | |
* If we don't put this as a high priority in the init hook, the calls in | |
* Woo happen before these filters are defined, removing ability to affect it. | |
* | |
* Init separately here to avoid unintended consequences of doing all hook setting at | |
a high priority. | |
*/ |
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
#!/bin/bash | |
# Use debsums to check for any altered binaries | |
# | |
# To recreate the baseline file, simply rm it | |
cd /root/verify || exit | |
VERIFY="debsums | grep FAILED" | |
TERMINAL= |
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
#!/bin/bash | |
# Use debsums to check for any altered binaries | |
# | |
# To recreate the baseline file, simply rm it | |
cd /root/verify || exit | |
TERMINAL= |
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
Messages maintainer: Mike Williams <[email protected]> | |
"functions.php" 211L, 8145C | |
gutentags: Scanning buffer 'functions.php' for gutentags setup... | |
gutentags: No specific project type. | |
gutentags: Setting gutentags for buffer 'functions.php' | |
gutentags: Generating missing tags file: /data/www/kathys_new/tags | |
gutentags: Wildignore options file is up to date. | |
gutentags: Running: ['/home/gbell2/.vim/bundle/vim-gutentags/plat/unix/update_tags.sh', '-e', 'ctags', '-t', 'tags', '-p', '.', '-o', '/home/gbell2/.vim/bundle/vim-gutentags/res/ctags_recursive.options', '-x', 'node_modules', '-x', 'vendor', '-l', 'tags.log'] | |
gutentags: In: /data/www/kathys_new | |
gutentags: [job output]: 'Locking tags file...' |
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
module Page294 where | |
--Numbers into words | |
import Data.List (intersperse) | |
digitToWord :: Int -> String | |
digitToWord 0 = "zero" | |
digitToWord 1 = "one" | |
digitToWord 2 = "two" |
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
module Page294 where | |
--Numbers into words | |
import Data.List (intersperse) | |
digitToWord :: Int -> String | |
digitToWord 0 = "zero" | |
digitToWord 1 = "one" | |
digitToWord 2 = "two" |
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
module Page294 where | |
--Numbers into words | |
import Data.List (intersperse) | |
digitToWord :: Int -> String | |
digitToWord 0 = "zero" | |
digitToWord 1 = "one" | |
digitToWord 2 = "two" |
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
module Page367 where | |
import Data.Time | |
data DatabaseItem = DbString String | |
| DbNumber Integer | |
| DbDate UTCTime | |
deriving (Eq, Ord, Show) | |
theDatabase :: [DatabaseItem] |
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
module Page440 where | |
data BinaryTree a = | |
Leaf | |
| Node (BinaryTree a) a (BinaryTree a) | |
deriving (Eq, Ord, Show) | |
mapTree :: (a -> b) | |
-> BinaryTree a | |
-> BinaryTree b |
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
module Page440 where | |
data BinaryTree a = | |
Leaf | |
| Node (BinaryTree a) a (BinaryTree a) | |
deriving (Eq, Ord, Show) | |
mapTree :: (a -> b) | |
-> BinaryTree a | |
-> BinaryTree b |