Skip to content

Instantly share code, notes, and snippets.

View artgon's full-sized avatar

Arthur Gonigberg artgon

View GitHub Profile
@artgon
artgon / gist:5818849
Created June 19, 2013 22:54
lineman output
Running "sass:compile" (sass) task
Verifying property sass.compile exists in config...OK
Files: app/css/main.scss -> generated/css/app.sass.css
Options: loadPath=["vendor/components/foundation/scss","app/css","vendor/css"]
Reading app/css/main.scss...OK
Writing generated/css/app.sass.css...OK
Syntax error: Invalid CSS after " @media ": expected "{", was "#{$small} {"
on line 153 of /Users/artg/dev/matygo/crazyhorse/vendor/components/foundation/scss/foundation/components/_grid.scss
from line 10 of /Users/artg/dev/matygo/crazyhorse/vendor/components/foundation/scss/foundation.scss
from line 67 of standard input
@artgon
artgon / gist:5825602
Created June 20, 2013 19:00
Route description and auth enforcement
angular.module("crazyhorse").config(function ($routeProvider) {
'use strict';
$routeProvider.when('/login', {
templateUrl: 'users/login.html',
controller: 'LoginController',
resolve: {
organization: ['OrganizationService', function (OrganizationService) {
return OrganizationService.resolveOrganization();
@artgon
artgon / ObjectifyScalatraAdapter.scala
Created October 6, 2013 01:11
Async Scalatra Objectify
/**
* For each action we map to the Scalatra equivalent block parameter
* though we are still bound to the HttpServletRequest and Response
* currently.
*/
sortedActions.foreach(action => {
def scalatraFunction(route: String) = action.method match {
case Options => options(route)_
case Get => get(route)_

Keybase proof

I hereby claim:

  • I am artgon on github.
  • I am artgon (https://keybase.io/artgon) on keybase.
  • I have a public key whose fingerprint is 5B49 09A4 9D2D C3E2 690D A9F2 5796 F37D 400B D302

To claim this, I am signing this object:

@artgon
artgon / channels.clj
Created December 22, 2014 21:08
Playing around with channels
(ns channels.core
(:require [clojure.core.async :as async :refer [chan go >! <!!]])
(:gen-class))
(def sum (atom 0))
(defn summing [start end loops]
(let [c (chan loops)
piece (/ end loops)]
(dotimes [i loops]