This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
defmodule LiveViewStudioWeb.AutocompleteLive do | |
use LiveViewStudioWeb, :live_view | |
alias LiveViewStudio.Stores | |
alias LiveViewStudio.Cities | |
def mount(_params, _session, socket) do | |
socket = | |
assign(socket, | |
zip: "", |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
module Forms exposing (..) | |
import Browser | |
import Char | |
import Html exposing (Html, br, div, input, p, text) | |
import Html.Attributes exposing (placeholder, style, type_, value) | |
import Html.Events exposing (onInput) | |
main = | |
Browser.sandbox { init = init, update = update, view = view } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# Load the bash completion first | |
# my_pass.sh needs to be on the load path | |
# complete -F _pass mypass.sh | |
pgrep clipman | |
if [[ $? -ne 0 ]];then | |
# clipman not running... |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
set -e | |
function syncAccount() { | |
# Important: need trailing slash | |
FROM=$1 | |
TO=$2 | |
[[ $FROM =~ /$ ]] || (echo "Missing trailing slash!" && exit 1) | |
[[ $TO =~ /$ ]] || (echo "Missing trailing slash!" && exit 1) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
set -e | |
DEBUG=0 | |
function notify() { | |
echo -e "\033[1;33m" | |
echo '=================================================================================================' | |
echo $1 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env ruby | |
# gem install colored | |
require "colored" | |
# The idea of this class is to encapsulate the creation of complex html elements such | |
# as the bootstrap carousel found here | |
# http://twitter.github.io/bootstrap/javascript.html#collapse | |
# | |
# This is a ruby prototype before implementing the idea in rails. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class AccordionRails | |
=begin | |
This should be called inside an erb template (currently not working) | |
<%= AccordionRails.new(parent_id: "front-page-accordion") do |accordion| %> | |
<%= accordion.element(template: self, title: "My first title link", target_id: "collapseFirstRow") do %> | |
<p>This is the body content of the first accordion row</p> | |
<% end %> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
MIME-Version: 1.0 | |
Content-Type: multipart/mixed;boundary="-----------MIME_BOUNDARY | |
-------------MIME_BOUNDARY | |
Content-Type: application/octet-stream; | |
Content-Transfer-Encoding: Base64 | |
PHhtbD48bm9kZT5UaGlzIGlzIGEgbXVsdGlwYXJ0IGF0dGFjaG1lbnQ8L25v | |
ZGU+PC94bWw+ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Content-Type: application/octet-stream; | |
Content-Transfer-Encoding: Base64 | |
PHhtbD48bm9kZT5UaGlzIGlzIGEgbW9ub3BhcnQgYXR0YWNobWVudDwvbm9k | |
ZT48L3htbD4= |