Skip to content

Instantly share code, notes, and snippets.

Avatar

Dénes Csala csaladenes

View GitHub Profile
@jalcantarab
jalcantarab / _jsonPuller.md
Last active Nov 2, 2021 — forked from crstamps2/jsonPuller
A Google apps script to pull json from a spreadsheet
View _jsonPuller.md

JSON Puller - Google Apps Script

Transforms the data of a given Spreadsheet Sheet to JSON.

  • The frozen rows are taken as keys for the JSON.
  • The data taken for the values is only that after the frozen rows

Set up:

exportJSON(Spreadsheet) - transforms the data in the given sheet to JSON.

@jquacinella
jquacinella / violin_weighted_plot.py
Last active Jun 10, 2020
Violin Plots for Weighted Data in Matplotlib
View violin_weighted_plot.py
import weighted
from matplotlib.cbook import violin_stats
from scipy import stats
import statsmodels.api as sm
def vdensity_with_weights(weights):
''' Outer function allows innder function access to weights. Matplotlib
needs function to take in data and coords, so this seems like only way
to 'pass' custom density function a set of weights '''
@ceilfors
ceilfors / ssh-copy-id.py
Last active Sep 10, 2021
ssh-copy-id for Windows
View ssh-copy-id.py
"""ssh-copy-id for Windows.
Example usage: python ssh-copy-id.py ceilfors@my-remote-machine
This script is dependent on msysgit by default as it requires scp and ssh.
For convenience you can also try that comes http://bliker.github.io/cmder/.
"""
import argparse, os
from subprocess import call
@andreas-h
andreas-h / r_stl.py
Created Dec 5, 2013
Python-wrapper for R's STL
View r_stl.py
# -*- coding: utf-8 -*-
import datetime
from numpy import asarray, ceil
import pandas
import rpy2.robjects as robjects
def stl(data, ns, np=None, nt=None, nl=None, isdeg=0, itdeg=1, ildeg=1,
nsjump=None, ntjump=None, nljump=None, ni=2, no=0, fulloutput=False):