- Setup a Hello World build of ReactNative
- Push through Fastlane to Apple Development and Android Development
- Figure out how the Firebase Testing Lab works
- Establish a push from ReactNative to Firebase Real Time Database
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
// functions/income/counter.function.js | |
'use strict' | |
const functions = require('firebase-functions') | |
const admin = require('firebase-admin') | |
// Prevent firebase from initializing twice | |
try { admin.initializeApp(functions.config().firebase) } catch (e) {} |
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
<%= select(:address, :state, [ | |
['Select a State', 'None'], | |
['Alabama', 'AL'], | |
['Alaska', 'AK'], | |
['Arizona', 'AZ'], | |
['Arkansas', 'AR'], | |
['California', 'CA'], | |
['Colorado', 'CO'], | |
['Connecticut', 'CT'], | |
['Delaware', 'DE'], |
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
page '/podcast.xml', layout: false | |
# Methods defined in the helpers block are available in templates | |
helpers do | |
def podcast_source_path(article) | |
"source/audio/#{article.data.file}" | |
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
Rails.logger.info "REQUEST INSPECTOR" | |
Rails.logger.info " [REQUEST_URI] #{request.headers['REQUEST_URI'].inspect}" | |
Rails.logger.info " [RAW_POST]: #{request.raw_post.inspect}" | |
Rails.logger.info " [PARAMS]: #{request.params.inspect}" | |
Rails.logger.info " [HTTP_AUTHORIZATION] #{request.headers['HTTP_AUTHORIZATION'].inspect}" | |
Rails.logger.info " [CONTENT_TYPE]: #{request.headers['CONTENT_TYPE'].inspect}" | |
Rails.logger.info " [HTTP_ACCEPT] #{request.headers['HTTP_ACCEPT'].inspect}" | |
Rails.logger.info " [HTTP_HOST] #{request.headers['HTTP_HOST'].inspect}" | |
Rails.logger.info " [HTTP_USER_AGENT] #{request.headers['HTTP_USER_AGENT'].inspect}" |
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
Sidekiq.redis {|c| c.del('stat:processed') } | |
and to reset failed jobs: | |
Sidekiq.redis {|c| c.del('stat:failed') } | |
bundle exec sidekiq -q high,5 default | |
RAILS_ENV=production bundle exec sidekiq -d -L /home/deployer/apps/collector/shared/sidekiq.log -q high,5 default |
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
// JavaScript Techniques for Selectors | |
var something = document.getElementById("the-id-name"); | |
var something = document.getElementsByTagName("p"); | |
var something = document.getElementsByClassName("class-name"); | |
var something = document.querySelector("#id-name"); | |
var something = document.querySelector(".class-name"); | |
var something = document.querySelector("element"); | |
var something = document.querySelectorAll("p.intro"); |
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
<!DOCTYPE html> | |
<html lang="en"> | |
<head> | |
<meta charset="UTF-8"> | |
<title>jQuery App Template</title> | |
<!-- Added link to the jQuery Library --> | |
<script src="https://code.jquery.com/jquery-3.1.1.js"></script> | |
<!-- Added a link to Bootstrap--> |