Add this to the .irbrc file in the rails app directory.
rails_env = "🤗"
if ENV['RAILS_ENV'] == 'production'
rails_env = "🥶"
elsif ENV['RAILS_ENV'] == 'staging'
rails_env = "🧘"
end
Add this to the .irbrc file in the rails app directory.
rails_env = "🤗"
if ENV['RAILS_ENV'] == 'production'
rails_env = "🥶"
elsif ENV['RAILS_ENV'] == 'staging'
rails_env = "🧘"
end
import Combine | |
import Foundation | |
import PlaygroundSupport | |
PlaygroundPage.current.needsIndefiniteExecution = true | |
var publisher = PassthroughSubject<Int, Error>() | |
let cancellable = publisher | |
.flatMap { Just($0).setFailureType(to: Error.self) } | |
.handleEvents( |
import AppKit | |
import SwiftUI | |
// Delete this line if not using a playground | |
import PlaygroundSupport | |
struct ContentView: View { | |
var body: some View { | |
// if spacing is not set to zero, there will be a gap after the first row |
I hereby claim:
To claim this, I am signing this object:
node-gyp needs more ram or swap space to install. Use these commands to create swap space as root. (if using sudo, then put the following in a file and then run it using sudo).
Assumes you have Ubuntu. Should work for most Debian-based OSes.
These are quick copy-paste commands to create 2gb swap space. Look at the end for info.
# feel free to change below values
<!doctype html> | |
<html> | |
<head> | |
<title>Buildings and the moon OR a bar chart</title> | |
<script src="https://cdnjs.cloudflare.com/ajax/libs/d3/3.5.6/d3.min.js" charset="utf-8"></script> | |
</head> | |
<body> | |
<svg> |
defmodule Mix.Tasks.Phoenix.Release do | |
use Mix.Task | |
@shortdoc "Creates a release using exrm" | |
def run(args) do | |
Application.put_env(:phoenix, :serve_endpoints, true, persistent: true) | |
Mix.Task.run "release", args | |
end | |
end |
machine: | |
environment: | |
PATH: "$HOME/.asdf/bin:$HOME/.asdf/shims:$PATH" | |
services: | |
- redis | |
dependencies: | |
cache_directories: | |
- ~/.asdf | |
pre: | |
- if ! asdf | grep version; then git clone https://github.com/HashNuke/asdf.git ~/.asdf; fi |
defmodule Tryout do | |
def hello(name \\ "akash") | |
def hello(name) do | |
IO.puts name | |
end | |
end | |
Tryout.hello #=> akash | |
Tryout.hello("nuke") #=> nuke |
defmodule Fantastic.Rotors do | |
import Rotor.BasicRotors | |
import CoffeeRotor | |
import SassRotor | |
# NOT TESTED won't work | |
# TODO digested output has to be stored in the application env, as a map, so that it's accessible in the templates. | |
# so the hash would contain %{"file name" => "digest"} | |