Skip to content

Instantly share code, notes, and snippets.

<?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>
@exoer
exoer / Accounts store
Last active June 16, 2020 09:47
Mongo Transactions
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')
@exoer
exoer / app.js
Last active August 29, 2015 14:26 — forked from brianfeister/app.js
Angular Upload with Image Crop
angular.module('cropAndUpload', [
'angularFileUpload',
'ngImgCrop'
])
@exoer
exoer / db_server.rb
Created July 4, 2011 17:58 — forked from coderanger/db_server.rb
Create postgres users and databases from Chef
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"