Skip to content

Instantly share code, notes, and snippets.

use crate::database::tasks::{self, Entity as Task};
use axum::{
extract::{Path, Query},
http::StatusCode,
Extension, Json,
};
use sea_orm::{ColumnTrait, Condition, DatabaseConnection, EntityTrait, QueryFilter};
use serde::{Deserialize, Serialize};
#[derive(Serialize)]
# Decorators
class BaseDecorator < SimpleDelegator
attr_reader :view
def initialize(model, view = ActionView::Base.new)
@view = view
super(model)
end
def self.from_collection(collection, view = ActionView::Base.new)
May 24
https://team.metromart.com/dashboard/invoices/143506/143624
https://team.metromart.com/dashboard/invoices/143506/143261
May 25
https://team.metromart.com/dashboard/invoices/143506/143620
https://team.metromart.com/dashboard/invoices/143506/144101
https://team.metromart.com/dashboard/invoices/143506/143335
https://team.metromart.com/dashboard/invoices/143506/144036
https://team.metromart.com/dashboard/invoices/143506/143769
https://www.metromart.com/shops/pet-express-filandia
Coupon
Foo
marketing initiative
max_usage_per_user_count => 3
---------------
Scenario 1
local System = require('libs/system')
local function randomness_system()
local system = System.new { 'body', 'random_motion' }
function system:load(entity)
print 'in randomness system!'
end
function system:update(dt, entity)
local World = require('world')
local Component = require('component')
local System = require('system')
local coms = require('components/common_components')
local health = require('components/health')
function new_renderer_system()
local renderer = System.new {'body', 'rect'}
function renderer:load(entity)
command! -nargs=1 Silent
\ execute 'silent !' . <q-args>
\ | execute 'redraw!'
<%#
Based out of the opsworks template located at:
https://github.com/aws/opsworks-cookbooks/blob/release-chef-11.10/deploy/templates/default/logrotate.erb
We want to limit the daily log file size to 100mb, so that it does not consume the servers disk space over time
%>
<% @log_dirs.each do |dir| %><%= dir %>/*.log <% end %> {
size 50M
missingok
import Ember from 'ember';
export default Ember.Component.extend({
init() {
this._super(...arguments);
this.isEditing = false;
}
});