Skip to content

Instantly share code, notes, and snippets.

public ActionResult MyGridData(FormCollection postData)
{
Order_DetailDataContext db = new Order_DetailDataContext();
var order_1 = db.Orders;
var order_status = db.OrderStatus;
var order_status_history = db.OrderStatusHistories;
var orderstatuslanguage = db.OrderStatusLanguages.Where(x => x.type_cd == 'O');
var vendororder = db.VendorOrders;
var vendor = db.Vendors;
using System;
using System.Collections.Generic;
using System.Diagnostics;
using System.Linq;
namespace Console.MathTester
{
class Program
{
static void Main(string[] args)
use rand::prelude::*;
fn process_fat_accounts(accounts: &mut [f32], base: f32) -> f32 {
let mut sum = 0_f32;
for i in 0..accounts.len() {
let money = accounts[i];
if money > base {
let f = (money / base).powf(1.3);
if accounts[i] - f > base {
accounts[i] -= f;
using System;
using System.Collections.Generic;
using System.Diagnostics;
using System.Linq;
namespace Console.MathTester
{
class Program
{
static void Main(string[] args)
using System;
using System.Diagnostics;
using System.Linq;
namespace Sample22
{
class Program
{
static void Main(string[] args)
{
#https://leetcode.com/problems/house-robber/submissions/
def show(s)
p s
end
def rob(nums)
#show "start"
res1 = go(0,nums)
res2 = go(1,nums)
using System;
using System.Threading.Tasks;
class Program
{
static void Main()
{
while (true)
{
// Start computation.
def main
if ARGV.length < 2
STDERR << "Usage: #{$0} <a> <b> <c>\n"
exit 1
end
a = ARGV[0].to_f
b = ARGV[1].to_f
c = ARGV[2].to_f
def process_fat_accounts(pp,base)
sum = 0
for i in (0..pp.size-1) do
mm = pp[i]
if mm > base
f = (mm/base) ** 1.3
if pp[i] - f > base
pp[i] = (pp[i] - f).round(2)
sum = (sum + f).round(2)
def process_fat_accounts(pp,base)
sum = 0
for i in (0..pp.size-1) do
mm = pp[i]
if mm > base
f = (mm/base) ** 1.3
if pp[i] - f > base
pp[i] = (pp[i] - f).round(2)
sum = (sum + f).round(2)