- awesome graphql great for learning more about GraphQL as a technology.
- graphql schema design at scale @xuorig's excellent talk, he has a book coming out soon too
- shopify graphql schema design tutorial
- Lessons of 4 years of GraphQL @leebyron touches on schema design and tooling here
- Fighting legacy codebases with GraphQL and Rails good discussion on some tooling around performance here by @nettofarah
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
tap "homebrew/core" | |
tap "homebrew/bundle" | |
tap "homebrew/cask-versions" | |
tap "mongodb/brew" | |
cask "java" | |
brew "autoconf" | |
brew "coreutils" | |
brew "direnv" | |
brew "git" | |
brew "gnupg" |
I hereby claim:
- I am ridget on github.
- I am ridget (https://keybase.io/ridget) on keybase.
- I have a public key whose fingerprint is 68BB CE34 562F 5D5C F712 52B5 E42D 43A0 8ECE A334
To claim this, I am signing this object:
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
# db/migrate/20120625030355_add_deleted_at_to_user.rb | |
class AddDeletedAtToUser < ActiveRecord::Migration | |
def change | |
add_column :users, :deleted_at, :datetime | |
end | |
end |
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
# spec/views/products/_product.html.erb_spec.rb | |
describe 'products/_product.html.erb' do | |
context 'when the product has a url' do | |
it 'displays the url' do | |
assign(:product, build(:product, url: 'http://example.com') | |
render | |
expect(rendered).to have_link 'Product', href: 'http://example.com' |
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
# works in ruby 1.9 | |
count.group_by { |o| o.site.name }.inject({}) { |m, (k,v)| m[k] = v.map(&:user_id); m } | |
# works in ruby 2.0 and above | |
count.group_by { |o| o.site.name }.map{ |k,v| [k, v.map(&:user_id)]}.to_h |
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
expect{ | |
$SELECTION$ | |
}.to change($MODEL$, :$ATTR$).by($AMOUNT$) |
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
echo "Oppan Gangnam Style Gangnam Style Op op op op oppan Gangnam Style Gangnam Style Op op op op oppan Gangnam Style hay Sexy lady Op op op op oppan Gangnam Style hay Sexy lady Op op op op Eh eh eh eh eh eh Oppan Gangnam Style" | say -v Junior |
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 | |
class ChangePassword extends CAction { | |
... action code here | |
} |
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
public function allInCategory($categoryIds){ | |
$this->getDbCriteria()->mergeWith(array( | |
'with' => array( | |
'courseCategories' => array( | |
'condition' => 'categoryID in (:categoryIds)' | |
) | |
), | |
'params' => array(':categoryIds' => $categoryIds), | |
)); | |
return $this; |
NewerOlder