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
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)] |
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
# 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) |
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
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 |
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
https://www.metromart.com/shops/pet-express-filandia |
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
Coupon | |
Foo | |
marketing initiative | |
max_usage_per_user_count => 3 | |
--------------- | |
Scenario 1 |
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
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) |
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
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) |
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
command! -nargs=1 Silent | |
\ execute 'silent !' . <q-args> | |
\ | execute 'redraw!' |
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
<%# | |
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 |
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
import Ember from 'ember'; | |
export default Ember.Component.extend({ | |
init() { | |
this._super(...arguments); | |
this.isEditing = false; | |
} | |
}); |
NewerOlder