Complete user authentication system including signup, signin, password management, and session handling.
Common Requirements:
- User registration and login
- Password reset/recovery
defmodule Components.LeafletMap do | |
use Phoenix.Component | |
attr :class, :string, default: nil | |
def map(assigns) do | |
~H""" | |
<div style="overflow: hidden" phx-update="ignore" id="mapcontainer"> | |
<div class={@class} phx-hook="Map" id="mapid"></div> | |
</div> |
<?xml version="1.0" encoding="UTF-8"?> | |
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> | |
<plist version="1.0"> | |
<dict> | |
<key>UnifiedBar</key> | |
<dict> | |
<key>DisclosureRequired</key> | |
<string>ace440ac-b4f6-4b43-aade-02bba1589aef</string> | |
<key>Enabled</key> | |
<false/> |
/** | |
* Laravel's Arr::dot function for Javascript. | |
* IMPORTANT: Requires lodash installed. | |
*/ | |
function dot(array, prepend) { | |
results = [] | |
prepend = prepend || '' | |
$.each(array, function(key, value) { | |
if ((_.isObject(value) || _.isArray(value)) && ! _.isEmpty(value)) { |
import Foundation | |
import os.log | |
class URLCacheTest { | |
let logger = Logger(subsystem: "URLCacheTest", category: "main") | |
// HTTP HEADERS: | |
// Date: Wed, 04 Nov 2020 11:13:24 GMT | |
// Server: Apache | |
// Strict-Transport-Security: max-age=63072000; includeSubdomains; preload |
example.com { | |
root * /var/www/vhosts/example.com/public | |
php_fastcgi unix//var/run/php/php7.4-fpm.sock | |
file_server | |
encode zstd gzip | |
} |
#!/bin/bash | |
export GO_VERSION=1.16.3 | |
export GO_DOWNLOAD_URL=https://storage.googleapis.com/golang/go$GO_VERSION.linux-amd64.tar.gz | |
export GOROOT=/opt/go | |
export GOPATH=$GOROOT/packages | |
export PATH=$PATH:$GOROOT/bin:$GOPATH/bin | |
sudo mkdir $GOROOT |
import UIKit | |
import QuartzCore | |
class ViewController: UIViewController { | |
@IBOutlet weak var label: UILabel | |
@IBOutlet weak var counter: UILabel | |
override func viewDidLoad() { | |
super.viewDidLoad() |
sudo apt-get install avahi-daemon avahi-discover avahi-utils libnss-mdns mdns-scan |
type T struct { | |
A int | |
B string | |
} | |
t := T{23, "skidoo"} | |
s := reflect.ValueOf(&t).Elem() | |
typeOfT := s.Type() | |
for i := 0; i < s.NumField(); i++ { |