Skip to content

Instantly share code, notes, and snippets.

View admariner's full-sized avatar

Periklis Papanikolaou admariner

  • admariner
  • Thessaloniki
View GitHub Profile
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@gildas-lormeau
gildas-lormeau / userscript.js
Created November 17, 2019 00:37
Save page in reader mode with SingleFile
// ==UserScript==
// @name Save page in reader mode
// @namespace https://github.com/gildas-lormeau/SingleFile/
// @version 1.0
// @description Save page in reader mode with SingleFile
// @author Gildas Lormeau
// @match *://*/*
// @grant none
// ==/UserScript==
@hannesdatta
hannesdatta / download_from_dropbox.py
Last active December 16, 2024 15:27
Python script to download entire folder/directory structure from a (shared) Dropbox folder to a local computer
################################################################
# DOWNLOAD ENTIRE FOLDER STRUCTURE FROM DROPBOX TO LOCAL DRIVE #
################################################################
# Instructions:
# (1) install dropbox API using pip
# > pip install dropbox
# (2) Create application to make requests to the Dropbox API
# - Go to: https://dropbox.com/developers/apps
"use strict";
let exports = {}
Object.defineProperty(exports, "__esModule", { value: true });
class CPT {
constructor() {
this.alphabet = new Set();
this.root = new PredictionTree();
this.II = {};
this.LT = {};
this.data = [];
@mariolambe
mariolambe / google-autocomplete.ipynb
Created February 27, 2020 16:21
Extract Google Autocomplete keywords with Python
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
/**
* @OnlyCurrentDoc
*/
var MAXROWS = 1000
var SEEKWELL_J_SHORT_DATES = { day: "yyyy-MM-dd", month: "yyyy-MM", year: "yyyy", dayNum: "dd", monthNum: "MM", yearNum: "yyyy", week: "W" }
var SEEKWELL_J_TIMEZONE = "UTC"
var HOST = '35.196.130.133'
var PORT = '3306'
var USERNAME = 'apps_script_demo'
@Robin-Lord
Robin-Lord / restaurant_bot.py
Created April 28, 2020 13:07
Short code which works with Twilio to record
"""
ADD THE FOLLOWING LINES TO YOUR REQUIREMENTS.TXT:
flask
twilio
pytz
"""
@caseypage
caseypage / AdwordsScript.js
Last active May 6, 2025 20:58
This will automate setting custom parameters for your adwords tracking template at the campaign and adgroup level.
// Sample Tracking Template
// {lpurl}?utm_medium=adwords&utm_campaign={_campaign}&utm_source={_adgroup}&utm_term={keyword}
// This script will set custom parameters {_campaign} and {_adgroup} at the campaign and adgroup level respectively.
// Configuration
// Set the Parameter Format Mode to either "safe" or "strict"
const PARAMETER_FORMAT_MODE = 'safe';
function main() {
updateCampaigns();
@DerekHawkins
DerekHawkins / core_web_vitals_analysis_example.py
Created June 1, 2020 13:47
core_web_vitals_analysis_example.py
import pandas as pd
import requests
import urllib
import time
import re
# Data Visualization
from plotly import tools
import chart_studio