Cannot seem to get desired response through relationship. Must be missing some step here. How does one return with the relationship?
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
// Put this in a folder together with the "svg" folder from Twemoji. Create a new folder next to it called "flags". | |
const fs = require("fs"); | |
const path = require("path"); | |
// country code regex | |
const CC_REGEX = /^[a-z]{2}$/i; | |
// offset between uppercase ascii and regional indicator symbols | |
const OFFSET = 127397; |
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
@mixin material-shadow($level: 1) { | |
@if $level == 1 { | |
box-shadow: 0 1px 3px rgba(#000, .12), | |
0 1px 2px rgba(#000, .24); | |
} @else if $level == 2 { | |
box-shadow: 0 3px 6px rgba(#000, .16), | |
0 3px 6px rgba(#000, .23); | |
} @else if $level == 3 { | |
box-shadow: 0 10px 20px rgba(#000, .19), | |
0 6px 6px rgba(#000, .23); |
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
input[autocomplete="off"]::-webkit-contacts-auto-fill-button { | |
visibility: hidden; | |
display: none !important; | |
pointer-events: none; | |
height: 0; | |
width: 0; | |
margin: 0; | |
} |
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 Campaign | |
field :name | |
# ... | |
has_many :shortcodes_services | |
has_many :phone_numbers, through: :campaigns_phone_number | |
end | |
class CampaignsPhoneNumber | |
belongs_to :campaign |
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
<?php | |
use Invitious\Invitious; | |
// Basic code | |
echo Invitious::generate(Invitious::ENGLISH_WORD_GENERATOR); | |
// Custom length | |
echo Invitious::generate(Invitious::ENGLISH_WORD_GENERATOR, 4); | |
// Custom separator |
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
# lib/tasks/assets.rake | |
require 'image_optim' | |
require 'image_optim/runner' | |
namespace :assets do | |
desc 'Runs image_optim on the assets.' | |
task :optimize do | |
image_optim = ImageOptim::Runner.new(recursive: true) | |
image_optim.run!(Dir['app/**/*.{svg,jpg,png,jpeg,gif}']) | |
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
Verifying that +jeroenvisser101 is my blockchain ID. https://onename.com/jeroenvisser101 |
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
#!/usr/bin/env ruby | |
# Get values from | |
branch_name = ARGV[0] | |
commit_count = ARGV[1].to_i > 0 ? ARGV[1].to_i : 1 | |
# If no branch is given, or it is a question for help, show usage | |
if branch_name.nil? or ['-h', '--help'].include? branch_name | |
puts <<-USAGE | |
usage: git move-to-branch <branch name> [commits] |
NewerOlder