Skip to content

Instantly share code, notes, and snippets.

gmarik gmarik

Block or report user

Report or block gmarik

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View Crawler.go
package main
import (
gmarik /
Created Oct 18, 2019 — forked from labnol/
How to Learn Google Apps Script - The best resources for learning Google Apps Script, the glue that connects GSuite services including Gmail, Google Drive, Calendar, Maps, Analytics and more.

Learning Google Apps Script

The best place to learn more about Google Script is the official documentation available at Here are other places that will help you get up to speed.

  1. Google Apps Scripts - Snippets by +Amit Agarwal
  2. Apps Script Starter - Create Google Apps Script projects locally inside VS Code.
  3. Digital Inspiration by +Amit Agarwal - Google Addons
  4. Awesome Google Scripts by +Amit Agarwal
  5. Build with Google Apps Script - Setup a local development environment for Apps Script
  6. Apps Script Webinars - YouTube - by +Eric Koleda
gmarik / Dockerfile
Created Sep 29, 2019 — forked from Irio/Dockerfile
GCP Serverless scrapers
View Dockerfile
FROM golang:1.12 as build
COPY scraper scraper
COPY main.go .
RUN go get -d -v ./...
RUN go install
gmarik / analyze.go
Created Nov 12, 2015 — forked from nf/analyze.go
'spent' script to log where time is spent
View analyze.go
package main
import (
View chat.go
package main
import (
type Client struct {
incoming chan string
gmarik /
Created Aug 26, 2012 — forked from demonbane/
Create a Fluid-style app launcher for single-window Chrome instances on OSX
echo "What should the Application be called (no spaces allowed e.g. GCal)?"
read inputline
echo "What is the url (e.g."
read inputline


wow, what a stack trace

$ time clj -e '(bar 1)'
Exception in thread "main" java.lang.RuntimeException: Unable to resolve symbol: bar in this context, compiling:(NO_SOURCE_PATH:1)
	at clojure.lang.Compiler.analyze(
	at clojure.lang.Compiler.analyze(
	at clojure.lang.Compiler$InvokeExpr.parse(
gmarik / gcombo.rb
Created May 13, 2012
group combinations
View gcombo.rb
# solution for problem 1.27 from
def gcombo(list, ns, acc, q = [], rest = list, qg = [])
if ns.sum != list.size && acc.empty?
raise ArgumentError, "Impossible to group #{list} into groups of #{ns} elements"
if ns.empty?
acc << qg
View combinations.rb
# get all combinations
n = (ARGV[0] || 5).to_i
m = (ARGV[1] || 3).to_i
puts "#{n}/#{m}"
def comb(list, m, q, acc)
return if list.empty?
gmarik / game_of_life.rb
Created Mar 19, 2012
Conway's Game of life
View game_of_life.rb
require 'set'
cells = lambda do |world, (x, y)|
[-1,-1], [0, -1], [1, -1],
[-1, 0], [1, 0],
[-1, 1], [0, 1], [1, 1],
].map do |(dx, dy)|
[x+dx, y+dy]
end.partition { |_cell| world.include?(_cell) }
You can’t perform that action at this time.