Skip to content

Instantly share code, notes, and snippets.

Avatar

Jan Gleixner jan-glx

View GitHub Profile
@jan-glx
jan-glx / data.R
Created Jun 29, 2021
demo data for glmgampoi issue
View data.R
pars <- list(Y = structure(c(46910819.9790649, 106932464.945086, 47871319.9775817,
107009304.974582, 31754130.0099559, 67657619.9535588, 33118039.9730373,
72316044.9935353, 46901215.0102922, 98729795.0210831, 43145660.0025119,
91362760.0231563, 39572599.9997401, 84379924.9702695, 30947309.992971,
69607434.9551284, 55180725.0019158, 107499160.056843, 56122014.9924626,
105568554.950027, 41935429.9847383, 64420735.0140891, 44557595.0019883,
75351225.0170069, 42857510.0085098, 111677335.095885, 51453984.9920682,
123750819.967743, 42838300.0033168, 110611180.039133, 43923664.993523,
117459544.975627, 36258875.0053207, 108939910.016663, 32743445.0015492,
@jan-glx
jan-glx / google_wordcloud.R
Last active Jul 17, 2016 — forked from noamross/google_wordcloud.R
Create a wordcloud of your google search history
View google_wordcloud.R
# Script to make a word cloud of your google searches. Get your google search
# history at https://myactivity.google.com/more-activity . This script assumes the JSON files
# exported are in a 'Searches' subfolder
library(jsonlite)
library(rlist)
library(magrittr)
library(stringi)
library(wordcloud)
library(tm)
View 4eb8465a-c78b-4eab-8f14-6f15a1ccad65.txt
_companyName:GitHub
_productName:Atom
_version:1.6.2
platform:win32
process_type:renderer
prod:Electron
ptime:160961635
rept:electron-crash-service
ver:0.34.5
@jan-glx
jan-glx / speed_dist2.py
Created Aug 26, 2015
no wonder C is faster
View speed_dist2.py
__author__ = 'jan'
import numpy as np
import scipy.weave
def grad_dist2(ls, x1, x2=None):
if x2 is None:
x2 = x1
View .gitignore
*.aux
*.glo
*.idx
*.log
*.toc
*.ist
*.acn
*.acr
*.alg
*.bbl
View cell2csv.m
function cell2csv(fileName, cellArray, append, separator, excelYear, decimal)
% Writes cell array content into a *.csv file.
%
% CELL2CSV(fileName, cellArray, append, separator, excelYear, decimal)
%
% fileName = Name of the file to save. [ i.e. 'text.csv' ]
% cellArray = Name of the Cell Array where the data is in
% append = false to open a new file, or true to go on with the existent.
% separator = sign separating the values (default = ';')
% excelYear = depending on the Excel version, the cells are put into