Skip to content

Instantly share code, notes, and snippets.

View stevepm's full-sized avatar
🏠
Working from home

Steve stevepm

🏠
Working from home
View GitHub Profile
@stevepm
stevepm / introrx.md
Created March 27, 2016 07:10 — forked from staltz/introrx.md
The introduction to Reactive Programming you've been missing
if (process.env.IS_MIRROR) {
Meteor.methods({
'loadFixtures': function(){
console.log('Loading default fixtures');
// TODO: add your fixtures here
// Example below:
//*****EXAMPLE********
//Accounts.createUser({
// email: '[email protected]',
// password: '123456'
# in spec/support/omniauth_macros.rb
module OmniauthMacros
def mock_auth_hash
# The mock_auth configuration allows you to set per-provider (or default)
# authentication hashes to return during integration testing.
OmniAuth.config.mock_auth[:twitter] = {
'provider' => 'twitter',
'uid' => '123545',
'user_info' => {
'name' => 'mockuser',
<?php
include("simple_html_dom.php");
// Create DOM from URL or file
$html = file_get_html('http://www.google.com/');
// Find all images
/*foreach($html->find('img') as $element)
echo $element->src . '<br>';
// Find all links