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
def read_fieldnames(path): | |
with open(path, "r") as path_csv: | |
reader = csv.reader(path_csv) | |
row = reader.next() | |
return row |
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
import org.junit.Before; | |
import org.junit.Test; | |
import java.util.HashMap; | |
import java.util.Map; | |
public class CRMClientTest { | |
private CRMClient crmClient; | |
private StubbedClientHandler clientHandler; |
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
def encode_post_params(params) | |
params.map do |param| | |
name = param['name'] | |
value = param['value'] | |
"#{CGI.escape(name)}=#{CGI.escape(value)}" | |
end.join('&') | |
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
class Post < ActiveRecord::Base | |
belongs_to :user | |
end |
NewerOlder