Skip to content

Instantly share code, notes, and snippets.

View csanivar's full-sized avatar
🌱

Chandra Sanivarapu csanivar

🌱
View GitHub Profile
@csanivar
csanivar / receipts
Last active September 10, 2021 06:41
const table = document.querySelector('#searchresults')
const rows = [...(table.querySelectorAll('tr[role=row]'))]
const nonCheckedRows = rows.filter(row => {
const reviewedColumn = row.querySelectorAll('td')[1]
const insideTable = reviewedColumn.querySelector('table')
return !insideTable
})

[AESEDI-53447] Postmortem

Date

2020-08-22

Authors

@csanivar

Status

RESOLVED

Overview

Data sent by the customer was not sent from AES EDI due to an issue with AES CIS and 486,000 records were affected.

import java.io.*;
class housiegame
{ housiecard board1[][], board2[][], board3[][], board4[][];
String nums[]={"0","1","2","3","4","5","6","7","8","9","10","11","12","13","14","15","16","17","18","19","20","21","22","23","24","25","26","27","28","29","30","31","32","33","34","35","36","37","38","39","40","41","42","43","44","45","46","47","48","49","50","51","52","53","54","55","56","57","58","59","60","61","62","63","64","65","66","67","68","69","70","71","72","73","74","75","76","77","78","79","80","81","82","83","84","85","86","87","88","89","90","91","92","93","94","95","96","97","98","99"};
public void main()throws Exception
{
board1=new housiecard[3][7];
board2=new housiecard[3][7];
board3=new housiecard[3][7];
import java.io.*;
class bingogame
{ bingocard uboard[][], cboard[][];
String nums[]={"0","1","2","3","4","5","6","7","8","9","10","11","12","13","14","15","16","17","18","19","20","21","22","23","24","25","26","27","28","29","30","31","32","33","34","35","36","37","38","39","40","41","42","43","44","45","46","47","48","49"};
public void main()throws Exception
{
uboard=new bingocard[5][5];
cboard=new bingocard[5][5];
//shufflenums();
/*
Copyright 2017 Bryan Keller (https://github.com/widget-)
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
for each pixel you count the number of letters that have a 1 and a 0 in it
then you take the minimum of those numbers
and you select the pixel with the biggest score, because that provides the most information
when selecting the next pixel you do the same for each group and add the score minimas
and you are done if you have 1 letter per group
not sure if that always produces the optimum
say you have A=001, B=010, C=101, D=111 as the example. First group: [A, B, C, D]. First pixel: 2 zeros and 2 ones makes min(2,2) = 2, second pixel: min(2,2)=2, third pixel: min(1,3)=1. The highest score is 2 so you take the first or second pixel.
say you pick the first
the new group is [A,B] and [C,D]. First pixel: group1: min(0,2)=0 group2: min(2,0)=0, 0+0=0, score 0 (which means it is useless, because we already know its value)
@csanivar
csanivar / gist:b49e53b23131e7293738
Last active February 28, 2016 19:04
Footer with author info and share options
<footer class="post-footer">
<!-- Everything inside the #author tags pulls data from the author -->
<!-- #author-->
{% if site.image %}
<figure class="author-image">
<a class="img" href="{{ site.url }}/about" style="background-image: url(https://s.gravatar.com/avatar/{{ site.author.gravatar_md5 }}?s=280)"><span class="hidden">{{ page.author }}'s Picture</span></a>
</figure>
{% endif %}
export PATH=/home/demo/java/jdk1.7.0_10/bin:/home/demo/Android/sdk/platform-tools:/home/demo/Android/sdk/tools:/home/demo/android-studio/bin:$PATH
unzip /<path to package>/android-studio-ide-<version>-linux.zip