Skip to content

Instantly share code, notes, and snippets.

Server function for iFrame plugin

@alexp1917
alexp1917 / idea.desktop
Last active January 27, 2022 11:50
Add Intellij IDEA Java IDE to Gnome Desktop
# /usr/share/applications/idea.desktop
[Desktop Entry]
Name=Intellij IDEA
Comment=Intellij IDEA Java IDE
Exec="idea.sh" %f # should be in path
Terminal=false
Type=Application
StartupNotify=true
MimeType=text/plain;
@alexp1917
alexp1917 / .gitignore
Last active August 2, 2021 00:22
d3 on Node.js example
node_modules/
@alexp1917
alexp1917 / index.js
Created August 1, 2021 22:51 — forked from benoitv-code/index.js
d3, jsdom, node.js: server-side rendering
// Instructions:
// npm install --save d3 jsdom
const fs = require('fs');
const d3 = import('d3');
const jsdom = require('jsdom');
const { JSDOM } = jsdom;
async function main() {
const fakeDom = new JSDOM('<!DOCTYPE html><html><body></body></html>');
@alexp1917
alexp1917 / script.js
Last active November 29, 2020 19:46
code formatting suggestions
var count_end = 0;
async function work(result, db, key) {
var leadID = result[key].id;
var l_type = result[key].l_type;
var extra_column_13 = result[key].extra_column_13;
var l_source = result[key].l_source;
var first_name = result[key].first_name;
var v_liquido = result[key].extra_column_9;
var v_bruto = result[key].extra_column_11;
var v_cronologica = result[key].extra_column_15;
@alexp1917
alexp1917 / Non-Reformist-Reforms.rst
Last active June 10, 2020 01:56
Non Reformist Reforms towards Police Abolition

+---------------------------------------------------------------------------+--------------------------------------------------------------------+----------------------------------------------------------------------------------------------------------+---------------------------------------------------------------------------------------------------------+----------------------------------------------------------------------------------------------------------------------+ | DOES THIS | Reduce funding to police? | challenge the notion that police increase safety? | reduce tools / tactics / tech for cops? | reduce the scale of policing? | +=================================================================

@alexp1917
alexp1917 / README.md
Last active May 29, 2020 15:39
police departments in allegheny county

PD Locations