Solar powered raspberry pi that can turn on/off the boat's inverter remotely.
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
<?php | |
/** | |
* Implements hook_menu_alter(). | |
*/ | |
function module_menu_alter(&$items) { | |
$old_callback = $items['node/%node']['access callback']; | |
$old_args = $items['node/%node']['access arguments']; | |
// Overrides the access callback to remove access to note content | |
$items['node/%node']['access callback'] = '_note_node_view_access'; |
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
<?php | |
$slide_one = array(1,2,3); | |
$slide_two = array( | |
'cat' => array('cute', 'hairy'), | |
'dog' => array('noisy', 'bark bark') | |
); |
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
17:27:09 Nick Murdoch: where's unserialise() coming from? | |
17:27:43 Rachel Graves: unserialize() is just in php, remember, not really OO | |
17:27:52 Nick Murdoch: ah, okay | |
17:28:05 Nick Murdoch: ALso no namespacess | |
17:28:14 Nick Murdoch: And yet people still call PHP a language. | |
17:28:17 Nick Murdoch: *ducks* | |
17:28:25 Rachel Graves: lol | |
17:28:28 Rachel Graves: Look | |
17:28:30 Rachel Graves: I like OO | |
17:28:32 Rachel Graves: I like Ruby |
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/lib/jekyll.rb b/lib/jekyll.rb | |
index b0401b9..26936e6 100644 | |
--- a/lib/jekyll.rb | |
+++ b/lib/jekyll.rb | |
@@ -66,7 +66,7 @@ module Jekyll | |
'future' => true, # remove and make true just default | |
'pygments' => true, # remove and make true just default | |
- 'markdown' => 'maruku', | |
+ 'markdown' => 'multimarkdown', |
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
it 'vomits (raises an InvalidOutline) at a yaml_hash with missing paramaters' do | |
missing_outline_is_a_big_no_no_hash = | |
{ 'start_date': 'Yesterday', | |
'body': "You can't begin yesterday", | |
'title': 'The impossible outline' | |
# OMG NO OUTLINE!!! | |
} | |
expect { Outline.new(missing_outline_is_a_big_no_no_hash) }.to raise_error(Outline::InvalidOutline) |
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
bool candiesThrownGotChocolateBar=false, bool candyBoxBoxOpened=false, bool castleBigRoomHovenHappy=false, bool castleRoom2LitFire=false, bool castleRoom2TookObject=false, bool castleTowerFirstVisitDone=false, bool castleTowerPStoneDone=false, bool castleTowerLStoneDone=false, bool castleTowerAStoneDone=false, bool castleTowerYStoneDone=false, bool castleTowerTookTalkingCandy=false, bool castleKilledNougatMonster=false, bool cellarDone=true, bool dragonDone=false, bool dragonUnlockedCyclops=false, bool forgeFoundLollipop=true, bool forgeBoughtWoodenSword=true, bool forgeBoughtIronAxe=false, bool forgeBoughtPolishedSilverSword=false, bool forgeBoughtLightweightBodyArmour=false, bool forgeBoughtScythe=false, bool fortressRoom1ChestFound=false, bool fortressRoom3ChestFound=false, bool fourthHouseFoundLollipopOnCupboard=true, bool gameDebug=false, bool gameInvertedColors=true, bool lighthousePuzzleDone=false, bool lollipopFarmPlant1LollipopButtonUnlocked=false, bool lollipopFarmPlant10LollipopsButtonUnlocked=fals |
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
class Admins do | |
include Users | |
include Forums::UserTemplate | |
def all | |
Users.admins.all.to_h | |
end | |
end | |
group :admin do |
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
it { should allow_value('male').for(:gender) } | |
it { should allow_value('female').for(:gender) } | |
it { should_not allow_value('').for(:gender) } | |
it { should_not allow_value('other').for(:gender) } | |
it { should allow_value(nil).for(:gender) } |
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
As an ethical consumer | |
I want to submit a list of brands I don't want to support | |
So that I can see a list of owners, subsidiaries and associates who I also should not support | |
As a left-wing political supporter | |
I want to submit a list of political parties I do not wish to support | |
So that I can see a list of companies and people who donate to these parties | |
As a knowledgeable person | |
I want to submit details about political parties, brands and companies |
OlderNewer