Skip to content

Instantly share code, notes, and snippets.

View admariner's full-sized avatar

Periklis Papanikolaou admariner

  • admariner
  • Thessaloniki
View GitHub Profile
package shadowDom;
import java.util.concurrent.TimeUnit;
import org.openqa.selenium.chrome.ChromeDriver;
/**
*
* @author Koushik Chatterjee
*
@admariner
admariner / gist:605fd13bc88fde8e7e816dce26ff5cd0
Created May 27, 2023 13:30 — forked from paulgambill/gist:7146202
This Ruby script parses the dataset from https://catalog.data.gov/dataset/baby-names-from-social-security-card-applications-data-by-state-and-district-of- to find the top name for each sex/year/state permutation. The result is a .csv with a row for each year/sex/top name combination. Be sure to replace the path on line 7 with your local path.
require 'csv'
year = 1910
CSV.open("stateNamesParsed.csv", "ab") do |csv|
Dir.glob('PATH/*.TXT') do |file|
next if file == '.' or file == '..'
File.open(file).readlines.each do |line|
array = line.split(',')
@admariner
admariner / LICENSE.txt
Created May 8, 2023 01:02 — forked from 140bytes/LICENSE.txt
140byt.es -- Click ↑↑ fork ↑↑ to play!
DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE
Version 2, December 2004
Copyright (C) 2011 YOUR_NAME_HERE <YOUR_URL_HERE>
Everyone is permitted to copy and distribute verbatim or modified
copies of this license document, and changing it is allowed as long
as the name is changed.
DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE
const SECRET_KEY = ENTER YOUR SECRET KEY HERE;
const MAX_TOKENS = 200;
// For more cool AI snippets and demos, follow me on Twitter: https://twitter.com/_abi_
/**
* Completes your prompt with GPT-3
*
* @param {string} prompt Prompt
* @param {number} temperature (Optional) Temperature. 1 is super creative while 0 is very exact and precise. Defaults to 0.4.
@admariner
admariner / db_face_rec.csv
Created May 15, 2022 09:12 — forked from laurenmarietta/db_face_rec.csv
How to programmatically write page content and PHP commands to create multiple new Wordpress pages, each linking to multiple documents.
We can make this file beautiful and searchable if this error is corrected: Unclosed quoted field in line 2.
id,Title,Year,Department,Description,Directory
A01-lantel-OEM,Lantel at the Boston Office of Emergency Management,2019,Boston Office of Emergency Management,"Since 2003, the City of Boston and surrounding cities and towns have been designated as an “Urban Areas Security Initiative” (UASI) region by the federal Department of Homeland Security. This UASI designation enables the City and the larger Metro Boston Homeland Security Region (MBHSR) to apply for and obtain federal grants for information sharing, surveillance, emergency preparedness, police and first responder communications, and other technologies and staffing.
The cities and towns included in the MBHSR are Boston, Brookline, Cambridge, Chelsea, Everett, Quincy, Revere, Somerville and Winthrop. Since 2003, the region has received hundreds of millions of dollars through the UASI grant program. These funds are distributed through the Office of Emergency Management in Boston, which also coordinates regional planning meetings, technology acquisitions and
<a href="{{ article.url }}" class="article__grid-image">
<img id="{{ img_id }}"
class="article__grid-image lazyload"
src="{{ article.image | img_url: '300x300' }}"
data-src="{{ img_url }}"
data-widths="[180, 360, 540, 720, 900, 1080, 1296, 1512, 1728, 2048]"
data-aspectratio="{{ article.image.aspect_ratio }}"
data-sizes="auto"
alt="{{ article.image.alt | escape }}">
</a>
@admariner
admariner / Pandora_Papers_neo4jguide.mdx
Created November 10, 2021 21:55 — forked from rvanbruggen/Pandora_Papers_neo4jguide.mdx
Pandora Papers - the Power Players

The Pandora Papers Guide

Graphic courtesy of ICIJ

Background

The Pandora Papers have rocked the world. News organisations began publishing their explosive contents on October 3, the giant leak has dominated headlines and posed questions of some of the world’s most powerful people and their financial propriety.

Some highlights:

@admariner
admariner / rage-clicks.js
Created November 4, 2021 19:40 — forked from silversillu/rage-clicks.js
Tracking Rage Clicks using GTM
if ( typeof(jQuery) === 'function' ) {
jQuery(document).ready(function($) {
jQuery.fn.extend({
getPath: function() {
var path, node = this;
while (node.length) {
var realNode = node[0],
name = realNode.localName;
if (!name) break;
name = name.toLowerCase();
EXPLAIN ANALYZE SELECT smlar(images.image_array, '{1010259,1011253,1012249,1013251,1014249,1015249,1016247,1017252,1018252,1019251,1020251,1021253,1022258,1023257,1024257,1110258,1111258,1112252,1113251,1114251,1115250,1116247,1117252,1118252,1119252,1120252,1121253,1122257,1123257,1124257,1210258,1211258,1212258,1213253,1214251,1215251,1216248,1217253,1218253,1219253,1220253,1221253,1222253,1223253,1224252,1310258,1311258,1312258,1313258,1314258,1315252,1316248,1317253,1318257,1319257,1320253,1321253,1322257,1323253,1324253,1410258,1411258,1412258,1413258,1414258,1415257,1416250,1417253,1418257,1419257,1420257,1421253,1422257,1423257,1424253,1510258,1511258,1512258,1513258,1514258,1515257,1516251,1517253,1518257,1519253,1520252,1521252,1522252,1523251,1524250,1610258,1611258,1612258,1613258,1614258,1615257,1616252,1617252,1618251,1619250,1620247,1621251,1622251,1623250,1624250,1710258,1711258,1712258,1713258,1714258,1715257,1716252,1717257,1718257,1719257,1720252,1721253,1722252,1723253,1724253,1810258,18112
# -*- coding: utf-8 -*-
"""
@author: satyam.kumar
"""
'''
Import necessary packages
'''