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
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; |
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
using System; | |
using System.Collections.Generic; | |
using System.Diagnostics; | |
using System.Linq; | |
namespace Console.MathTester | |
{ | |
class Program | |
{ | |
static void Main(string[] args) |
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 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; |
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
using System; | |
using System.Collections.Generic; | |
using System.Diagnostics; | |
using System.Linq; | |
namespace Console.MathTester | |
{ | |
class Program | |
{ | |
static void Main(string[] args) |
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
using System; | |
using System.Diagnostics; | |
using System.Linq; | |
namespace Sample22 | |
{ | |
class Program | |
{ | |
static void Main(string[] args) | |
{ |
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://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) |
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
using System; | |
using System.Threading.Tasks; | |
class Program | |
{ | |
static void Main() | |
{ | |
while (true) | |
{ | |
// Start computation. |
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
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 |
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
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) |
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
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) |
NewerOlder