Skip to content

Instantly share code, notes, and snippets.

View abhijangda's full-sized avatar

Abhinav Jangda abhijangda

View GitHub Profile
#!/usr/bin/sh
#ONLINE_CPUS=(0 1 4 5 6)
ONLINE_CPUS=(0 1 2 3 4 5 6 7 8 9 10 11)
for i in {1,2,3,4,5,6,7,8,9,10,11}
do
if [[ ${array[@]} =~ $i ]] then
echo ""
else
  1. Install Gnome Keyring, g++, buildtools, make
  2. Install OpenJDK-11.
  3. Makesure java default is OpenJDK-11 using below command and selecting Java 11 configuration
sudo alternatives --config java
  1. Download Ubuntu20.04 deb packages and jar packages from https://drive.google.com/drive/folders/1KT4ZUlMEQMQXVw_JfgqHBo5yzbjsF5WG?usp=sharing .
  2. Extract these deb packages to directory "~/intune-install/".
  3. Obtain deb package of intune portal from https://packages.microsoft.com/ubuntu/20.04/prod/pool/main/i/
  4. Obtain deb package of MSAL from https://packages.microsoft.com/ubuntu/20.04/prod/pool/main/m/
-- Check if in given list of numbers, are any two numbers closer to each other than
-- given threshold.
-- >>> has_close_elements([1.0, 2.0, 3.0], 0.5)
-- False
-- >>> has_close_elements([1.0, 2.8, 3.0, 4.0, 5.0, 2.0], 0.3)
-- True
local function has_close_elements(numbers, threshold)
local sorted_numbers = utils.sort(numbers)
local last_number = sorted_numbers[1]
for i = 2, #sorted_numbers do
#include <iostream>
#include <vector>
#include <string>
enum AMorPM {
AM,
PM
};
struct Time {
We can make this file beautiful and searchable if this error is corrected: No commas found in this CSV file in line 0.
Size allreduce-adam reducescatter-adam-allgather test-adam FusedAdam
1024 0.04393735678339502 0.035245784412257314 0.0447854759244928 0.031191484926753273
2048 0.09073242093280413 0.07089697481856527 0.08766976007834867 0.07775857804355182
4096 0.16417007234271389 0.14005382030565952 0.15948031175082036 0.14259523383103384
8192 0.2892693312683332 0.2720174182364977 0.2796968833425027 0.252017389432001
16384 0.538358725355631 0.5060361275160363 0.5027844048592792 0.46653232192630467
32768 0.9426672177492854 0.8809868917441803 0.8767177828621739 0.8044917481755457
65536 1.5062448893557325 1.444304986998195 1.4177882638278236 1.2857356023801454
131072 2.753725904346822 2.6148491581341617 2.6661003828195304 2.3676797628797943
262144 5.237680098600841 5.033851860336218 5.114791759650026 4.627087404376172
#Importing data testing network graph for bigger number of records
import networkx as nx
import pandas as pd
import numpy as np
df =pd.read_sas("C:\\My Codes\\SNA_New\\testdata3.sas7bdat",format='SAS7BDAT',encoding="ISO-8859-15")
#print(df)
df1 =pd.read_sas("C:\\My Codes\\SNA_New\\min_nbr_v3.sas7bdat",format='SAS7BDAT',encoding="ISO-8859-15")
L=df1.values.tolist()
#L
\begin{figure}[t]
\footnotesize
\begin{subfigure}{0.49\columnwidth}
\end{subfigure}
\begin{subfigure}{0.47\columnwidth}
\end{subfigure}
\caption[]{}
#include <algorithm>
#include <iostream>
#include <vector>
#include <iterator>
using namespace std;
class Contest {
std::vector <int> scores;
Contest& operator=(Contest);
\begin{figure*}[!htbp]
\hspace{-3.0ex}
\begin{tabularx}{\textwidth}{ll}
\vspace{-3.0ex}
\subfloat[Unsharp Mask]{
\small
\includegraphics[scale=1.0]{results/unsharp_mask}
\label{fig:unsharp_mask}
%\caption{Multiscale Interpolation}
}
runspec v6674 - Copyright 1999-2011 Standard Performance Evaluation Corporation
Using 'linux-suse10-amd64' tools
Reading MANIFEST... 22481 files
Loading runspec modules................
Locating benchmarks...found 31 benchmarks in 6 benchsets.
Reading config file '/opt/SPEC_CPU2006v1.2/config/browsix-asmjs.cfg'
Running "specperl /opt/SPEC_CPU2006v1.2/Docs/sysinfo" to gather system information.
Retrieving flags file (/opt/SPEC_CPU2006v1.2/config/flags/Example-gcc4x-flags-revA.xml)...
Retrieving flags file (/opt/SPEC_CPU2006v1.2/config/flags/Example-linux-platform-revA.xml)...
Benchmarks selected: 400.perlbench