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_into_carto("grow_test_government_body_assembly") | |
def import_into_carto(file_name) | |
`curl -v -F file=@public/data/#{file_name}.csv "https://advocacy-institute.carto.com/api/v1/imports/?api_key=#{ENV["CARTO_API_KEY"]}&content_guessing=true"` | |
puts "carto staging dataset uploaded".colorize(:green) | |
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
add_action('wp_head', 'revenglish_scripts'); | |
function revenglish_scripts() { | |
?> | |
<script> | |
(function(d, s, id){ | |
var js, fjs = d.getElementsByTagName(s)[0]; | |
if (d.getElementById(id)) {return;} | |
js = d.createElement(s); js.id = id; | |
js.src = "https://connect.facebook.com/en_US/messenger.Extensions.js"; | |
fjs.parentNode.insertBefore(js, fjs); |
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
/*1494946880,,JIT Construction: v3023720,en_US*/ | |
/** | |
* Copyright (c) 2017-present, Facebook, Inc. All rights reserved. | |
* | |
* You are hereby granted a non-exclusive, worldwide, royalty-free license to use, | |
* copy, modify, and distribute this software in source code or binary form for use | |
* in connection with the web services and APIs provided by Facebook. | |
* | |
* As with any software that integrates with the Facebook platform, your use of | |
* this software is subject to the Facebook Platform Policy |
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
# "String" | |
#----------# | |
# A string is any finite sequence of characters (i.e., letters, numerals, symbols and punctuation marks). | |
# Strings are wrapped in quotes: "String" | |
# Strings can be stores in variables. Below are a few @@globalvariables | |
# MINASWAN is a Ruby programming motto designed to promote positivity and goodwill among community members. | |
@@minaswan = 'Matz is Nice And So We Are Nice.' | |
# [Arrays] |
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" | |
#----------# | |
# In object-oriented programming, a class is an extensible program-code-template for creating objects | |
# providing initial values for state (member variables) and implementations of behavior (member functions or methods). | |
class Parable | |
require "./lib/concerns/think" | |
@@octavia_butler_golden_hash = { |
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
# Required Gems | |
source "https://rubygems.org" | |
gem 'pry' | |
gem 'talks' | |
gem 'formatador' | |
gem 'lita-ascii-art' |
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
# When he goes for the phone... | |
$ cat ruby_knows.rb | |
# him.send("we're not here to store anything. We're here to enjoy.each {|other| ... }") |
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
$ cat run_file.rb | |
# route_found? = true | |
$ bundle | |
# Fetching gem metadata from https://rubygems.org/......... | |
# Using sinatra 1.4.6 | |
# Bundle complete! 1 Gemfile dependencies, 35 gems now installed. | |
# Use `bundle show [gemname]` to see where a bundled gem is installed. | |
$ cat recursive_open_struct.rb |
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
# config.ru | |
require './config/environment' | |
if defined?(ActiveRecord::Migrator) && ActiveRecord::Migrator.needs_migration? | |
raise 'Migrations pending run `rake db:migrate` to resolve the issue.' | |
end | |
use FormController | |
use RequestSpecificationController | |
run TravelController |
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
# Ruby and I | |
$ cat hump_day.rb | |
# needs_expressed? = true |
NewerOlder