Radwimps (my favorite Japanese band)
Bump of Chicken (another awesome band)
赤髪(あかがみ)のとも ("let's play"-style YouTuber)
#!/usr/bin/env ruby | |
# require 'pathname' | |
require 'active_support/all' # DateTime | |
# M 2025-01-13 09-18 | |
# T 2025-01-14 07-16 | |
# W 2025-01-15 09-18 ? | |
# R 2025-01-16 y |
module Types.Scratch exposing (HasComments) | |
import RemoteData as RD exposing (RemoteData(..), WebData) | |
import Types.Clip.Comment as Comment exposing (Comment) | |
type alias HasComments m = |
Radwimps (my favorite Japanese band)
Bump of Chicken (another awesome band)
赤髪(あかがみ)のとも ("let's play"-style YouTuber)
-- haskell syntax, btw | |
data Maybe a | |
= Nothing | |
| Just a | |
noStringHere :: Maybe String | |
noStringHere = Nothing | |
aStringHere :: Maybe String |
module Email | |
def self.get_domain(email_address) | |
email_address&.split('@')&.last | |
end | |
end | |
emails = [ '[email protected]' ] | |
p emails.map(&Email.method(:get_domain)) |
// app/assets/javascripts/App.js | |
class App { | |
static initJobShow() { | |
$(document).ready(function(){ | |
let user_id = $(".user-id").data("id") | |
let job_id = $(".job-id").data("id") | |
$.get(`/users/${user_id}/jobs/${job_id}.json`, function(data) { | |
let job = new Job(date, user_id) |
// app/assets/javascripts/jobs/show.js | |
$(document).ready(function(){ | |
const displayJobDetails = function (job) { | |
$('#foo').append(JobView.renderJobShow(job)) | |
} | |
}) | |
// // jobs/show.html.erb | |
// ... |
// what we get | |
new Date('2018-10-01') | |
// Sun Sep 30 2018 20:00:00 GMT-0400 (Eastern Daylight Time) | |
// what we want | |
new Date('2018-10-01 GMT-0400') | |
// Mon Oct 01 2018 00:00:00 GMT-0400 (Eastern Daylight Time) | |
#!/usr/bin/env ruby | |
class Pawn | |
def move_down?(x,y) | |
can_move_distance?(x,y) | |
end | |
def move_up?(x,y) | |
can_move_distance?(x,y) |
#!/usr/local/bin/node | |
////////////////// | |
// Combinations // | |
////////////////// | |
// build all consecutive combination of elements, given an array | |
function getConsecutiveCombinations(orig_arr) { |