Skip to content

Instantly share code, notes, and snippets.

Keybase proof

I hereby claim:

  • I am camkidman on github.
  • I am camkidman (https://keybase.io/camkidman) on keybase.
  • I have a public key ASBdYKIN8LAafnSEe83dU9vdlzDwMJ1ZsbVOAdvKPonwbQo

To claim this, I am signing this object:

Keybase proof

I hereby claim:

  • I am camkidman on github.
  • I am sp33k3rph433k (https://keybase.io/sp33k3rph433k) on keybase.
  • I have a public key ASB64ol0j4SXnmOJ-T6cRCVMuN3Zp5Y2PtU33WUm94P14Ao

To claim this, I am signing this object:

Keybase proof

I hereby claim:

  • I am camkidman on github.
  • I am sp33k3rph433k (https://keybase.io/sp33k3rph433k) on keybase.
  • I have a public key ASBWW65SAV50Tbi9Kjeeq_tprPsJCOCifkj6V32HJpwEkQo

To claim this, I am signing this object:

## Your controller
def index
if search_params.present?
@cards = Card.where(search_params)
else
@cards = Card.all
end
end
card = ::Card.new
card.set = ::Set.find_by(:foreign_set_id => data.setId)
card.save
##
# Given the format [{"controller" => ["action0", "action1"]}, ... ]
# this gist should output a "get" method for everything that was there previously.
#
# ... Curse you, rails dynamic routing.
array_of_route_hashes = _
array_of_route_hashes.each do |hash|
hash.each do |controller, action_hash|
action_hash.each do |action|
export class Shit {
potentialLocations = [];
defFunction() {
someOtherFunctionThatReturnsAnArray( function(returnedArray) {
this.potentialLocations = returnedArray;
});
}
}
render: function() {
return <div className="register-form">
{this.renderForm()}
</div>
},
renderForm: function() {
return <form onSubmit={this.formSubmit}>
<div className="form-group">
<label for="register-email">Email</label>
<input
require 'rubygems'
require 'httparty'
require 'pry'
url = ARGV[0]
token = ARGV[1]
channel_id = ARGV[2]
slack_response = HTTParty.get(url + "/channels.history", :query => { :token => token, :channel => channel_id })
message_array = []
import {bootstrap} from 'angular2/platform/browser';
import {provide} from 'angular2/core';
import {HTTP_PROVIDERS} from 'angular2/http';
import {AuthHttp} from 'angular2-jwt';
import {Config, SATELLIZER_PROVIDERS, Auth} from 'ng2-ui-auth';
import {AppComponent} from './app.component';
bootstrap(AppComponent, [
HTTP_PROVIDERS,
SATELLIZER_PROVIDERS({providers: {google: {clientId: GOOGLE_CLIENT_ID}}}),