This file contains 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
include_recipe "postgresql::server90" | |
# inspiration from | |
# https://gist.github.com/637579 | |
execute "create-root-user" do | |
code = <<-EOH | |
psql -U postgres -c "select * from pg_user where usename='root'" | grep -c root | |
EOH | |
command "createuser -U postgres -s root" |
This file contains 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
angular.module('cropAndUpload', [ | |
'angularFileUpload', | |
'ngImgCrop' | |
]) |
This file contains 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
const AccountCollection = mongoDb.collection('Accounts') | |
await AccountCollection.createIndex({ userId: 1 }); | |
const accountStore = { | |
createAccount: async({name, userId, balance=0, id= Id.makeId(), createdAt=Date.now(), updatedAt=Date.now(), isDefault=true}) => | |
{ | |
if (!userId) throw new Error('createAccount userId missing') |
This file contains 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
<?xml version="1.0" encoding="utf-8"?> | |
<resources xmlns:ns1="urn:oasis:names:tc:xliff:document:1.2"> | |
<attr format="reference" name="drawerArrowStyle"/> | |
<attr format="dimension" name="height"/> | |
<attr format="boolean" name="isLightTheme"/> | |
<attr format="string" name="title"/> | |
<bool name="abc_action_bar_embed_tabs">true</bool> | |
<bool name="abc_config_actionMenuItemAllCaps">true</bool> | |
<color name="abc_decor_view_status_guard">#ff000000</color> | |
<color name="abc_decor_view_status_guard_light">#ffffffff</color> |