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 React, { useState, useEffect } from 'react'; | |
import './App.css'; | |
import { firebase } from './config' | |
function useTimesList(sortDirection='asc') { | |
const [times, setTimes] = useState([]) | |
useEffect(() => { | |
const unsubscribe = firebase |
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
def test_ordered_reducer_pattern(): | |
class RandomNumberDependency(Dependency): | |
def promises(self): | |
return ['random-number'] | |
def execute(self, context): | |
context['random-number'] = 5 | |
return context |
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
" 1) W isn't mapped by default | |
command! W :w | |
" 2) force minimun window width | |
set winwidth=110 | |
" 3) navigate by display lines | |
noremap j gj | |
noremap k gk |
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
module Types | |
ProjectType = GraphQL::ObjectType.define do | |
name "Project" | |
description "a project" | |
implements GraphQL::Relay::Node.interface | |
global_id_field :id | |
field :title, !types.String do |
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
Feature: purchase product | |
Scenario: purchase product | |
Given seller has created a product | |
When buyer purchases the product | |
And buyer sends payment | |
Then seller should receive money | |
And the product shouldn't be listed |
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
lp -o media="30323 Shipping Label" -o fit-to-page -o landscape -d DYMO_LabelWriter_450_Turbo "./file.pdf" |
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
Feature: offer price | |
Scenario: accept offer price | |
Given I offer a price of "5.75" | |
When the price is accepted | |
Then I should be able to send payment |
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
gem 'motion-cocoapods' |
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
<% Category.order(:title).each do |category| %> | |
<%= link_to category.title, category_products_path(category.id) %> | |
<% end %> |
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
<?php | |
// http://michelf.ca/projects/php-markdown/ | |
require_once 'markdown.php'; | |
/** | |
* parses markdown before printing on the page | |
* | |
* you could put this in MarkdownCommentParser::comment | |
* if you wanted to save off the html |
NewerOlder