Skip to content

Instantly share code, notes, and snippets.

Svetlin Ralchev svett

Block or report user

Report or block svett

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
svett / time_travel_trigger.sql
Created Jan 31, 2018 — forked from myitcv/time_travel_trigger.sql
Trigger-based equivalent of old PostgreSQL time travel module - see for more details
View time_travel_trigger.sql
Copyright (c) 2015 Paul Jolly <
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
svett / app.js
Created May 31, 2017 — forked from RickWong/app.js
React without Webpack
View app.js
const App = ({name}) => {
return (
<h1>Hello {name}</h1>
ReactDOM.render(<App name="World" />, document.getElementById("App"));
svett /
Created May 12, 2017 — forked from jbroadway/
Slimdown - A simple regex-based Markdown parser.


A very basic regex-based Markdown parser. Supports the following elements (and can be extended via Slimdown::add_rule()):

  • Headers
  • Links
  • Bold
  • Emphasis
  • Deletions
svett /
Created May 10, 2017 — forked from PurpleBooth/
A template to make good

Project Title

One Paragraph of project description goes here

Getting Started

These instructions will get you a copy of the project up and running on your local machine for development and testing purposes. See deployment for notes on how to deploy the project on a live system.


View on-jsx.markdown

Hi Nicholas,

I saw you tweet about JSX yesterday. It seemed like the discussion devolved pretty quickly but I wanted to share our experience over the last year. I understand your concerns. I've made similar remarks about JSX. When we started using it Planning Center, I lead the charge to write React without it. I don't imagine I'd have much to say that you haven't considered but, if it's helpful, here's a pattern that changed my opinion:

The idea that "React is the V in MVC" is disingenuous. It's a good pitch but, for many of us, it feels like in invitation to repeat our history of coupled views. In practice, React is the V and the C. Dan Abramov describes the division as Smart and Dumb Components. At our office, we call them stateless and container components (view-controllers if we're Flux). The idea is pretty simple: components can'

svett / spec.proto
Created Dec 17, 2015
Protocol Buffers Company Example
View spec.proto
syntax = 'proto2';
package example;
enum CompanyType {
Private = 17;
Public = 18;
NonProfit = 19;
svett / spec.pb.go
Created Dec 17, 2015
Sample Golang implementation of spec.proto
View spec.pb.go
// Code generated by protoc-gen-go.
// source: spec.proto
Package example is a generated protocol buffer package.
It is generated from these files:
svett / golang_pprof.go
Last active Sep 6, 2019
A code snippet that demonstrates how to use custom pprof profiles
View golang_pprof.go
package main
import (
pprofHTTP "net/http/pprof"
svett / context.go
Created Nov 20, 2015
An example that illustrates how to work with
View context.go
package main
import (
svett / zipit_keep_hierarchy.go
Created Nov 20, 2015
Modification of ZipIt function to keep the directory hierarchy or not
View zipit_keep_hierarchy.go
func zipit(source, target string, keepHierarchy bool) error {
zipfile, err := os.Create(target)
if err != nil {
return err
defer zipfile.Close()
archive := zip.NewWriter(zipfile)
defer archive.Close()
You can’t perform that action at this time.