Custom fields
Custom fields can be created by posting to one of the 3 endpoints:
-
Leads: https://app.futuresimple.com/apis/leads/api/v1/custom_fields.json
-
Contacts:
""" | |
Minimal character-level Vanilla RNN model. Written by Andrej Karpathy (@karpathy) | |
BSD License | |
""" | |
import numpy as np | |
# data I/O | |
data = open('input.txt', 'r').read() # should be simple plain text file | |
chars = list(set(data)) | |
data_size, vocab_size = len(data), len(chars) |
Leads: https://app.futuresimple.com/apis/leads/api/v1/custom_fields.json
Contacts:
require 'faker' | |
modules = [Faker::Name, Faker::Company, Faker::Address, Faker::PhoneNumber, Faker::Internet] | |
puts modules.map { |x| x.methods(false).map { |y| "#{x.to_s.gsub("Faker::", "")} #{y}"} }.flatten.join(',') | |
data = (0...ARGV[0].to_i).map do | |
modules.map { |x| x.methods(false).map { |y| x.send(y) if x.method(y).arity < 1} }.flatten.join(',') | |
end | |
puts data.join("\n") |
{ | |
"bold_folder_labels": true, | |
"caret_style": "phase", | |
"font_size": 15.0, | |
"highlight_line": true, | |
"ignored_packages": | |
[ | |
"Vintage" | |
], | |
"scroll_past_end": true, |
require 'pry' | |
require 'calabash-cucumber/launch/simulator_helper' | |
require 'sim_launcher' | |
After( '@developing' ) do |scenario| | |
binding.pry if scenario.failed? | |
end | |
After do |scenario| | |
if scenario.failed? |
require 'pry' | |
After( '@developing' ) do |scenario| | |
binding.pry if scenario.failed? | |
end |
def taci | |
sample :loop_amen, start: 0.75, finish: 1, rate: 1.5 | |
end | |
def cita | |
sample :loop_amen, start: 0.5, finish: 0.75, rate: 1.5 | |
end | |
def puci | |
sample :loop_amen, start: 0.0, finish: 0.25, rate: 1.5 |
{ | |
"bold_folder_labels": true, | |
"caret_style": "phase", | |
"color_scheme": "Packages/Color Scheme - Default/Espresso Libre.tmTheme", | |
"font_face": "Menlo", | |
"font_size": 19, | |
"highlight_line": true, | |
"ignored_packages": | |
[ | |
"Vintage", |
def make_random_time | |
date1 = Time.new | |
date2 = Time.new - 50000000 # Beginning of time range | |
Time.at((date2.to_f - date1.to_f) * rand + date1.to_f).to_s | |
end | |
contacts = Contact.where(...) | |
contacts.each { |contact| contact.update_attribute(:last_activity_date, make_random_time) } |