This file contains hidden or 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
| /* Additional styles for Chrome Inspector; should be used with | |
| http://darcyclarke.me/design/skin-your-chrome-inspector/ | |
| and | |
| http://dpaste.com/hold/595890/ | |
| */ | |
| #elements-content li.hovered:not(.selected) .selection { | |
| /* hover color */ | |
| background: rgba(255, 255, 255, .2) !important; | |
| } | |
| #elements-content .selection.selected { |
This file contains hidden or 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
| # /home/ubuntu/bin/update-dns.rb | |
| require 'rubygems' | |
| require 'open-uri' | |
| require 'route53' | |
| zone = "bartimae.us" | |
| record_type = "A" | |
| ip_address = open("http://169.254.169.254/latest/meta-data/public-ipv4") { |f| f.read } |
This file contains hidden or 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
| # /home/ubuntu/bin/update-dns.rb | |
| require 'rubygems' | |
| require 'open-uri' | |
| require 'route53' | |
| zone = "bartimae.us" | |
| record_type = "A" | |
| ip_address = open("http://169.254.169.254/latest/meta-data/public-ipv4") { |f| f.read } |
This file contains hidden or 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
| #!/bin/bash | |
| su - ubuntu -c "ruby $HOME/bin/update-dns.rb" |
This file contains hidden or 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 posts_params | |
| params[:post][:tags] = params[:post][:tags].split(",") if params[:post][:tags].is_a? String | |
| params.require(:post).permit(:title, :content, :tags => []) | |
| end | |
| end |
This file contains hidden or 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 Api::ApplicationController < ActionController::Metal | |
| include ActionView::Layouts | |
| include ActionController::Helpers | |
| include ActionController::Rescue | |
| include ActionController::Redirecting | |
| include AbstractController::Rendering | |
| include ActionController::Renderers::All | |
| include ActionController::ImplicitRender | |
| include ActionController::MimeResponds | |
| include ActionController::ConditionalGet |
This file contains hidden or 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 "./index.css"; | |
| import React, { Component } from "react"; | |
| import FaPlay from "react-icons/lib/fa/play"; | |
| import FaPause from "react-icons/lib/fa/pause"; | |
| import FaForward from "react-icons/lib/fa/forward"; | |
| import FaBackward from "react-icons/lib/fa/backward"; | |
| class RadioGroup extends Component { | |
| state = { | |
| value: null |
This file contains hidden or 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 "./index.css"; | |
| import React, { Component } from "react"; | |
| import subscribeToMessages from "./messages"; | |
| import FadeIn from "./FadeIn"; | |
| // If user has scrolled up, don't scroll down | |
| class PinScrollToBottom extends Component { | |
| componentDidMount() { | |
| // this.scrollToBottom(); |
This file contains hidden or 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
| /* | |
| - Make the Play button work | |
| - Make the Pause button work | |
| - Disable the play button if it's playing | |
| - Disable the pause button if it's not playing | |
| - Make the PlayPause button work | |
| - Make the JumpForward button work | |
| - Make the JumpBack button work | |
| - Make the progress bar work | |
| - change the width of the inner element to the percentage of the played track |
This file contains hidden or 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
| /* | |
| Create a `withStorage` higher order component that manages saving and retrieving | |
| the `sidebarIsOpen` state to local storage | |
| */ | |
| import "./index.css"; | |
| import React from "react"; | |
| import MenuIcon from "react-icons/lib/md/menu"; | |
| import { set, get, subscribe } from "./local-storage"; |