Update: As package.elm-lang.org IP address has been changed and is not blocked anymore as far as I know, these proxies have been disabled. If you still need them, add a comment describing why.
Here is how to use the proxies:
Two options:
<!DOCTYPE html> | |
<html lang="en"> | |
<head> | |
<meta charset="UTF-8"> | |
<title>Alpine Stopwatch</title> | |
<script src="https://cdn.jsdelivr.net/gh/alpinejs/[email protected]/dist/alpine.js" defer></script> | |
</head> | |
<body> |
Update: As package.elm-lang.org IP address has been changed and is not blocked anymore as far as I know, these proxies have been disabled. If you still need them, add a comment describing why.
Here is how to use the proxies:
Two options:
I recently wanted to rename a model and its postgres table in a Phoenix app. Renaming the table was simple and documented, but the table also had constraints, sequences, and indexes that needed to be updated in order for the Ecto model to be able to rely on default naming conventions. I couldn't find any examples of what this would look like but was eventually able to figure it out. For anyone else in the same situation, hopefully this example helps.
In the example below, I'm renaming the Permission
model to Membership
. This model belongs to a User
and an Account
, so it has foreign key constraints that need to be renamed.
defmodule MyApp.Repo.Migrations.RenamePermissionsToMemberships do
use Ecto.Migration
Articles βββββββββββββββββββββ 65.1% | |
Videos βββββββββββββββββββββ 88.3% | |
Books βββββββββββββββββββββ 41.4% | |
Learn React βββββββββββββββββββββ 57.1% | |
Learn TypeScript βββββββββββββββββββββ 100.0% | |
GitHub βββββββββββββββββββββ 80.0% |
<!-- Copyright 2011 the Dart project authors. All rights reserved. | |
Use of this source code is governed by a BSD-style license | |
that can be found in the LICENSE file. --> | |
<h2>Dr. Fibonacci's Sunflower Spectacular</h2> | |
<div> | |
<canvas id="canvas" width="300" height="300"></canvas> | |
</div> |
On Mar 28, 2013 Dan Allen explained how to deploy to github-pages automatically. Many other GitHub users like Steve Klabnik and Domenic Denicola followed with the same approach:
Use an OAuth token with public_repo
or repo
permission to access the Github account over HTTPS inside a virtual build environment.
The same applies to Travis CI's built-in abilities, and there are more restrictions as deploying GitHub Releases works only for tags, not for branches.
The token grants write access for all of your (public) repositories and
This document will walk you through how to create or configure a Salesforce application for use with JWT authentication. These configuration steps and the example code works as of Salesforce API version 42.0.
Create an RSA x509 private key/certification pair
$ cd ~/Library/Application\ Support/Postgres/var-10
$ \rm -f postmaster.pid
OR
$ \rm -f ~/Library/Application\ Support/Postgres/var-10/postmaster.pid
# from https://codeburst.io/how-i-hacked-my-terminal-so-a-happy-whale-would-spout-software-quotes-at-me-6791e6c74fc6 | |
% | |
Simple things should be simple, complex things should be possible. | |
The Wiki Way: Quick Collaboration on the Web, Bo Leuf, Ward | |
Cunningham | |
% | |
Simplicity is the soul of efficiency. | |
Austin Freeman | |
% |
let params = { | |
TableName: 'xxx', | |
Limit: 50 // Configure based on needs | |
}; | |
let aItems = []; | |
const recursiveScan = (params) => { | |
return client.scan(params).promise().then((data) => { | |
// Simple Changes to input, optional | |
let newItems = data.Items.map((item) => { | |
return item; |