Animated login form ('-' * 19) A simple animated login form
A Pen by Mohamed Boudra on CodePen.
Animated login form ('-' * 19) A simple animated login form
A Pen by Mohamed Boudra on CodePen.
def parallel_map(enum, cb) do | |
Enum.map(enum, &(Task.async(fn() -> apply(cb, [&1]) end))) | |
|> Enum.map(&Task.await(&1)) | |
end |
<?php | |
$file = $argv[1]; | |
$table_name = $argv[2]; | |
$lines = file($file); | |
$header = array_shift($lines); | |
$fields = str_getcsv(trim($header)); |
I hereby claim:
To claim this, I am signing this object:
db: | |
image: postgres | |
ports: | |
- "5432:5432" | |
environment: | |
- POSTGRES_USER=postgres | |
- POSTGRES_PASSWORD=postgres | |
- POSTGRES_DB=hello_dev |
defmodule TBOE.Tasks.LunchBot do | |
@token "token here" | |
@channel "#lunch-bot" | |
@slack_endpoint "https://slack.com/api" | |
@last_couples_file "/tmp/lunch_last_couples.txt" | |
@greeting """ | |
Hello @channel :wave: | |
:point_down: Here are next week's couples! have coffee or lunch anytime next week with the person you've been paired with :hugging_face: |
const Sequelize = require("sequelize"); | |
const sequelize = new Sequelize("postgres://user:pass@localhost:5432/codeworks"); | |
sequelize.authenticate().then(() => { | |
console.log("connected to database"); | |
}).catch(() => { | |
console.error("failed to connect to database"); | |
}) |