Skip to content

Instantly share code, notes, and snippets.

View padurean's full-sized avatar

Valentin Padurean (Ogg) padurean

View GitHub Profile
@padurean
padurean / graphql-design-tutorial.md
Created June 18, 2018 14:16 — forked from swalkinshaw/tutorial.md
Designing a GraphQL API

Tutorial: Designing a GraphQL API

This tutorial was created by Shopify for internal purposes. We've created a public version of it since we think it's useful to anyone creating a GraphQL API.

It's based on lessons learned from creating and evolving production schemas at Shopify over almost 3 years. The tutorial has evolved and will continue to change in the future so nothing is set in stone.

@padurean
padurean / JWTAuthActor.scala
Created June 14, 2018 15:20
JWT Auth Actor state machine using become
import akka.actor.{Actor, ActorRef}
import com.typesafe.scalalogging.LazyLogging
import monix.execution.Scheduler
import org.joda.time.{DateTime, DateTimeZone}
import scala.concurrent.Future
import scala.concurrent.duration._
import scala.util.control.NonFatal
import scala.util.{Failure, Success}
@padurean
padurean / git-clearHistory
Created April 13, 2018 15:11 — forked from stephenhardy/git-clearHistory
Steps to clear out the history of a git/github repository
-- Remove the history from
rm -rf .git
-- recreate the repos from the current content only
git init
git add .
git commit -m "Initial commit"
-- push to the github remote repos ensuring you overwrite history
git remote add origin [email protected]:<YOUR ACCOUNT>/<YOUR REPOS>.git
@padurean
padurean / README.md
Created July 9, 2017 08:53 — forked from pathikrit/README.md
My highly opinionated list of things needed to build an app in Scala
@padurean
padurean / index.md
Created September 22, 2016 17:04 — forked from alekseykulikov/index.md
SUIT CSS naming convention for React.js application

Recently CSS has got a lot of negativity. But I would like to defend it and show, that with good naming convention CSS works pretty well.

My 3 developers team has just developed React.js application with 6561 lines of CSS (and just 5 !important). During one year of development we had 0 issues with CSS. No refactoring typos, no style leaks, no performance problems, possibly, it is the most stable part of our application.

Here are main principles we use to write CSS for modern (IE11+) browsers:

Advanced Functional Programming with Scala - Notes

Copyright © 2017 Fantasyland Institute of Learning. All rights reserved.

1. Mastering Functions

A function is a mapping from one set, called a domain, to another set, called the codomain. A function associates every element in the domain with exactly one element in the codomain. In Scala, both domain and codomain are types.

val square : Int => Int = x => x * x

From zero to microservice with 𝚫 now

The following guide will show you how to deploy a simple microservice written in JavaScript using 𝚫 now.

It uses Open Source tools that are widely available, tested and understood:

  • Node.JS
  • NPM
  • Express
@padurean
padurean / destructuring.md
Created April 6, 2016 13:46 — forked from yang-wei/destructuring.md
Elm Destructuring (or Pattern Matching) cheatsheet

Destructuring(or pattern matching) is a way used to extract data from a data structure(tuple, list, record) that mirros the construction. Compare to other languages, Elm support much less destructuring but let's see what it got !

Tuple

myTuple = ("A", "B", "C")
myNestedTuple = ("A", "B", "C", ("X", "Y", "Z"))

let
  (a,b,c) = myTuple
{-
See Elm docs for more details:
http://elm-lang.org/docs/records#record-types
-}
import Html
import String
origin : { x : Float, y : Float }
origin =
{ x = 0
@padurean
padurean / AboutFinch.md
Last active December 22, 2015 11:56
Zipkin tracing in Finch

padurean 12:52 Hi, guys I am new here, working in Scala & Play currently but i want to start a project using Finch and i would like to know if i can use Finagle modules with Finch and how - for example the Zipkin module (which i can not find between Finch modules)

thanks in advance

P.S. a link to some article describing this should be enough

padurean 12:53