Skip to content

Instantly share code, notes, and snippets.

View Hologos's full-sized avatar

Jiří Málek Hologos

View GitHub Profile
(function() {
let _shadowRoot;
let _id;
let _password;
let tmpl = document.createElement("template");
tmpl.innerHTML = `
<style>
</style>
<div id="ui5_content" name="ui5_content">
@Hologos
Hologos / Exercise1.java
Created September 11, 2019 21:09
Filip
public class Exercise1 {
public static void main(Striing[] args) {
int[] numbers = { 6, 1, 7, 3, 4, 8 };
// vypis nejmensi cislo
// vypis nejvetsi cislo
// vypis prumernou hodnotu
@Hologos
Hologos / dvd_box
Last active September 8, 2019 09:02
Processing gist
// size of dvd box
int dvdW = 80;
int dvdH = 50;
// positive value = moving towards right
// negative value = moving towards left
int xspeed = 1;
// coordinates of dvd box
// remember the x coordinate is the leftmost side
#! /usr/bin/env bash
for if_name in $(ifconfig -l); do
if ! [[ "${if_name}" =~ ^en[0-9]+$ ]]; then
break
fi
for if_ip in $(ifconfig "${if_name}" | grep 'inet' | awk '{ print $2 }'); do
nslookup "${if_ip}" | grep 'name = ' | awk '{ print $4 }'
done