This file contains hidden or 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 random | |
import copy | |
import os | |
# Game Settings | |
ALIVE = '*' | |
DEAD = ' ' | |
class Point: |
This file contains hidden or 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
clear all variables; | |
clc; | |
N = 1e5; | |
A = randi(4, N, 1) - 1; | |
delta = 1; | |
psi = [0.1 0.5 1 1.5 2 2.5 5]; | |
for p = 1:length(psi) |
This file contains hidden or 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
create or replace procedure debit_policy_2019_compliance() | |
language plpgsql | |
as | |
$$ | |
declare | |
r RECORD; | |
rslt doarni.ci_stock_history%rowtype; | |
vitem varchar; | |
vlot varchar; |
This file contains hidden or 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
WITH persona AS ( | |
SELECT DISTINCT | |
(regexp_matches(p.product_number, '^42-\d{4}-\d{3}-\d{2}$')) [1] AS product_number, | |
p.id, | |
p.description, | |
CASE | |
WHEN p.description ~ '^.*(\sCR\s|\sCR)(.*)(?=(\sVE\s)).*$' | |
THEN 'Cruciate Retaining Vivacit-E (CR VE)' | |
WHEN p.description ~ '^.*(\sCR\s|\sCR)(.*)(?!(\sVE\s)).*$' | |
THEN 'Cruciate Retaining (CR)' |
This file contains hidden or 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
/* | |
finds last few transfers of kit, very broad detail | |
INPUTS: | |
DAY_RANGE : number of days to search back | |
KIT_NUMBER : kit product number | |
KIT_SERIAL : kit serial number | |
*/ | |
WITH ITEM_TO_KIT AS ( | |
SELECT |
This file contains hidden or 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
`timescale 1ns/1ps | |
module left_rotator( | |
input x, y, | |
input logic [3:0] I, | |
output logic [3:0] b | |
); | |
always_comb | |
begin |
This file contains hidden or 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 pprint | |
import requests | |
import psycopg2 | |
import json | |
from Objects import * | |
BING_API_KEY = 'Aly75a6j5FS44wxXKh1qCUqIoVwGEV8dKYWBPtOTHRK6AGNHKsj8pBVv4eyEY1VX' | |
CONNECTION_INFO = { | |
'USER': '', |
This file contains hidden or 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 ItemLookUp.LookUp.Inventory; | |
using System; | |
using System.Collections.Generic; | |
using System.Text; | |
/// <summary> | |
/// Cannibalizer | |
/// This class takes information about objects that contain components and | |
/// builds a process to maximize the amount of valid kits that can be made | |
/// with the supplied kits. |
This file contains hidden or 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.Linq; | |
namespace ItemLookUp.Tools | |
{ | |
private interface IQueue<T> | |
{ | |
bool isEmpty(); |