Skip to content

Instantly share code, notes, and snippets.

@evaletolab
evaletolab / gist:89fe4bd4307345418113
Last active December 6, 2016 09:19 — forked from mhawksey/gist:1170597
gg.script
function onOpen() {
var menuEntries = [ {name: "Create Diary Doc from Sheet", functionName: "createDocFromSheet"}];
var ss = SpreadsheetApp.getActiveSpreadsheet();
ss.addMenu("Fitness Diaries", menuEntries);
}
function createDocFromSheet(){
var templateid = "1O4afl8SZmMxMFpAiN16VZIddJDaFdeRBbFyBtJvepwM"; // get template file id
var FOLDER_NAME = "Fitness Diaries"; // folder name of where to put completed diaries
// get the data from an individual user
if (typeof window.localStorage == 'undefined' || typeof window.sessionStorage == 'undefined') (function () {
var Storage = function (type) {
function createCookie(name, value, days) {
var date, expires;
if (days) {
date = new Date();
date.setTime(date.getTime()+(days*24*60*60*1000));
expires = "; expires="+date.toGMTString();
@evaletolab
evaletolab / nginx.conf
Last active December 6, 2016 09:18 — forked from thoop/nginx.conf
nginx.conf
# Change YOUR_TOKEN to your prerender token and uncomment that line if you want to cache urls and view crawl stats
# Change example.com (server_name) to your website url
# Change /path/to/your/root to the correct value
server {
listen 80;
server_name example.com;
root /path/to/your/root;
index index.html;
@evaletolab
evaletolab / active.md
Created September 21, 2016 08:21 — forked from paulmillr/active.md
Most active GitHub users (by contributions). http://twitter.com/paulmillr

Most active GitHub users (git.io/top)

The count of contributions (summary of Pull Requests, opened issues and commits) to public repos at GitHub.com from Fri, 19 Jun 2015 15:17:38 GMT till Sun, 19 Jun 2016 15:17:38 GMT.

Only first 1000 GitHub users according to the count of followers are taken. This is because of limitations of GitHub search. Sorting algo in pseudocode:

githubUsers
 .filter(user => user.followers > 635)
@evaletolab
evaletolab / wineasio-install.sh
Created June 11, 2018 08:29 — forked from AGhost-7/wineasio-install.sh
How to compile and install wineasio on Ubuntu Xenial 64 bit. This is for Guitar Rig only. Only works with 32 bit...
# Get the dev files for wineasio
git clone git://git.code.sf.net/p/wineasio/code /tmp/wineasio
# Install jack server
sudo apt-get install jackd1 -y
# Going to be using playonlinux to manage the wine executables but I
# still need the development files to compile wineasio
sudo apt-get install playonlinux -y
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@evaletolab
evaletolab / Search my gists.md
Created January 5, 2020 11:52 — forked from santisbon/Search my gists.md
How to search gists

Enter this in the search box along with your search terms:

Get all gists from the user santisbon.
user:santisbon

Find all gists with a .yml extension.
extension:yml

Find all gists with HTML files.
language:html