Cards here are organisation-wide tasks that require Craftworkers attention + input to progress.
This board is:
- the central ledger for tasks everyone needs to do
- the place where org meetings are managed
- for internal facing tasks only
# rake languages:update | |
# Note: requires the gem httparty | |
# the name of our project on transifex is loomio-1... swap this for your own in the code below | |
namespace :languages do | |
task :update => :environment do | |
@options = { basic_auth: {username: ENV['TRANSIFEX_USERNAME'], password: ENV['TRANSIFEX_PASSWORD']} } | |
language_info = HTTParty.get('http://www.transifex.com/api/2/project/loomio-1/languages', @options) | |
languages = language_info.each.map do |l| |
require 'curses' | |
class ComplexNum | |
attr_reader :re, :im | |
def initialize(re: 0, im:0) | |
@re = re | |
@im = im | |
end |
**Invoice 267** 4 payments, sub_total: 1439.08 | |
#635 | $100.0 2013-09-19 12:00:00 +1200 CashPayment | |
#649 | $100.0 2013-10-22 13:00:00 +1300 CashPayment | |
#650 | $100.0 2013-11-15 13:00:00 +1300 CashPayment | |
#709 | $1354.94 2013-10-10 13:00:00 +1300 CashPayment | |
https://go.xero.com/AccountsReceivable/View.aspx?InvoiceID=3e76f7bc-6e2c-4eac-a577-a2822ba1b841 | |
**Invoice 325** 5 payments, sub_total: 2049.2 | |
#427 | $1500.0 2013-09-26 12:00:00 +1200 CashPayment | |
#428 | $165.5 2013-11-11 13:00:00 +1300 CashPayment |
subdomain = 'nzdemo1' | |
Storey.switch subdomain | |
account = Account.current | |
owner = account.owner | |
custom_log_name = "xero-mix-#{subdomain}" | |
custom_logger = Xero::Logger.new "#{Rails.root}/log/#{custom_log_name}.log" | |
custom_connection = Xero::Connection.new owner, Xero::ApplicationFactory.new, custom_logger |
. |
Storey.switch 'amc' | |
a = Account.current | |
suppliers = Supplier.where(account_number: 'BLA') + Supplier.where(account_number: 'HAINES') | |
supplier_ids = suppliers.map(&:id) | |
target_parts = Part.where supplier_id: supplier_ids ; p 'got' | |
parts_in_use = JobPart.select(:part_id).map(&:part_id).uniq | |
target_parts_in_use = target_parts.select {|p| parts_in_use.include? p.id } ; p 'got' |
var pathname = process.argv[2]; | |
var extension = '.' + process.argv[3]; | |
var fs = require('fs'); | |
var path = require('path'); | |
fs.readdir(pathname, function(err, list) { | |
var matches = list.filter( function(element) { | |
return path.extname(element) === extension; | |
}); |
var http = require('http') | |
var completeCount = 0 | |
var dataStore = [] | |
for (var i=0; i<(process.argv.length-2); i++) { | |
dataStore[i] = { | |
url: process.argv[i+2], | |
response: '' | |
} | |
} |