Based on Leaflet Map US States Name Length. Now, with actual color!
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
// In a GitHub PR, you can run this script in a console to help automatically click the Viewed checkbox | |
// Worked as of 2023.12.18 | |
// JS snippet to click 'Viewed' on files that were deleted entirely, not changed or renamed | |
Array.from(document.querySelectorAll('.js-diff-load')).forEach(fileInfo => { | |
const text = fileInfo.nextElementSibling.textContent.trim(); | |
if(text.includes('This file was deleted.')) { | |
const viewedCheckbox = fileInfo.closest('.js-file.js-details-container').querySelector('.js-reviewed-checkbox'); | |
if(viewedCheckbox && !viewedCheckbox.checked) { | |
viewedCheckbox.click(); | |
} |
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
var app = require('http').createServer(handler); | |
var statusCode = 200; | |
app.listen(9000); | |
function handler (req, res) { | |
var data = ''; | |
if (req.method == "POST") { | |
req.on('data', function(chunk) { |
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
{ | |
id: "dfb667fb-f192-4d6d-8794-e89ece5db6ed", | |
type: "form.update", | |
owner_id: "00053caf-4b6e-4c86-88b6-64695895dffe", | |
data: { | |
name: "Intersections", | |
description: "Intersection in the city of Colorado Springs.", | |
bounding_box: null, | |
record_title_key: "94f8", | |
status_field: { }, |
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
global.helloWorldText = 'Hello, world!'; | |
helloWorld = function() { | |
console.log(global.helloWorldText); | |
return global.helloWorldText; | |
}; | |
helloWorld(); |
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
two_d_grid = | |
[ | |
[ 1, 2, 3, 4, 5 ], | |
[ 6, 7, 8, 9, 10 ], | |
[ 11, 12, 13, 14, 15] | |
] | |
puts "Basic 2D each" | |
two_d_grid.each do |row| | |
row.each do |cell| |
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
# spec/support/matchers/alias_method_matcher.rb | |
# RSpec matcher for alias_method. | |
# Orignal idea borrowed from: https://gist.github.com/1950961 | |
# Usage: | |
# | |
# describe Boomerang do | |
# let(:boomerang) { described_class.new } | |
# let(:subject} { boomerang } | |
# it { is_expected.to alias_method(:in_flight?).to(:in_air?) } |
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Final output based on Leaflet Map US States Name Length
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
def Cherry | |
def initialize(cherry) | |
@cherry = cherry | |
end | |
def process | |
@cherry = remove_pit(@cherry) | |
@cherry = twist_stem(@cherry) | |
end |
NewerOlder