Let's generate User model and controller.
mix ecto.create # create DB table
mix phx.gen.json Accounts User users email:string password_hash:string # scaffold users structure
let alreadyRun = document.querySelector('body').classList.contains("vl-bookmarklet"); | |
let domainCheck = window.location.origin == "http://legaldiary.courts.ie" | |
function wrap(el, wrapper) { | |
el.parentNode.insertBefore(wrapper, el); | |
wrapper.appendChild(el); | |
} | |
function addStyle(styleString) { | |
const style = document.createElement('style'); |
def extract_stuff(stuff, path) | |
path.empty? stuff : extract_stuff(stuff[path.shift], path) | |
end |
const mapValuesAsync = (obj, asyncFn) => { | |
const keys = Object.keys(obj); | |
const promises = keys.map(k => { | |
return asyncFn(obj[k]).then(newValue => { | |
return {key: k, value: newValue}; | |
}); | |
}); | |
return Promise.all(promises).then(values => { | |
const newObj = {}; | |
values.forEach(v => { |
### Keybase proof | |
I hereby claim: | |
* I am jcsrb on github. | |
* I am jcsrb (https://keybase.io/jcsrb) on keybase. | |
* I have a public key ASAPauepdarl-YvGUpS_RF7U_p6RxbLQ5f7splmcXzQnaQo | |
To claim this, I am signing this object: |
#! /usr/bin/env python3.5 | |
""" | |
Fixing bluetooth stereo headphone/headset problem in ubuntu 16.04 and also debian jessie, with bluez5. | |
Workaround for bug: https://bugs.launchpad.net/ubuntu/+source/indicator-sound/+bug/1577197 | |
Run it with python3.5 or higher after pairing/connecting the bluetooth stereo headphone. | |
This will be only fixes the bluez5 problem mentioned above . |
I hereby claim:
To claim this, I am signing this object:
# Install Ruby | |
wget http://ftp.ruby-lang.org/pub/ruby/2.2/ruby-2.2.1.tar.gz | |
tar xvzf ruby-2.2.1.tar.gz | |
cd ruby-2.2.1 | |
./configure --prefix=/usr | |
make | |
make install | |
# remove "ruby-2.1.1" folder in /root |
<html style="margin:0"> | |
<body style="margin:0"> | |
<img src='http://i.imgur.com/QwA1fvX.png' width='100%'> | |
</body> | |
</html> |
#!/bin/sh | |
PROXY_USER=user | |
PROXY_PASS=password | |
PROXY_PORT=3128 | |
# Clear the repository index caches | |
yum clean all | |
# Update the operating system |