Skip to content

Instantly share code, notes, and snippets.


Victor Miroshnikov superduper

View GitHub Profile
sasso / index.html
Last active Nov 27, 2020
GraphiQL with JWT
View index.html
<!DOCTYPE html>
body {
height: 100%;
margin: 0;
width: 100%;
overflow: hidden;
piranha / пше
Last active Jul 8, 2020
пше гит, прошу пана
View пше
#!/usr/bin/env python
# -*- mode: python, coding: utf-8 -*-
# This incredible piece of code makes git a bit Polish, a bit Western Ukrainian,
# пше прошу пана
# Joke is based on fact that 'git' is 'пше' in qwerty/йцукен layouts
# (c) 2013 Alexander Solovyov under terms of WTFPL
import sys
nevang / JsBSONHandlers.scala
Last active Mar 8, 2016
Reader and writer in order to work with spray-json and reactivemongo. Based on
View JsBSONHandlers.scala
import spray.json._
import reactivemongo.bson._
import reactivemongo.bson.handlers.{ BSONReader, BSONWriter, RawBSONWriter }
import scala.util.{ Try, Success, Failure }
import org.apache.commons.codec.binary.Hex
import org.joda.time.format.ISODateTimeFormat
import org.joda.time.{ DateTime, DateTimeZone }
import java.nio.ByteBuffer
import org.jboss.netty.buffer.ChannelBuffers
akaihola / .gitignore
Last active Apr 7, 2020
View .gitignore
andyedinborough / jquery.oauth.js
Created Jun 7, 2011
Introduces $.oauth() to make using OAuth from jQuery as easy as using $.ajax()
View jquery.oauth.js
(function (window, document, $, undefined) {
if (!$.Deferred) throw 'jQuery 1.5 is required to use the jQuery.oauth script!';
function require(name, url) {
if (window[name] === undefined)
return $.ajax({ type: 'GET', cache: true, dataType: 'script', url: url });
$.oauth = function (options) {
var d = $.Deferred();
peplin / recipe.rb
Created Jul 10, 2010
S3 File Resource for Chef
View recipe.rb
# Source accepts the protocol s3:// with the host as the bucket
# access_key_id and secret_access_key are just that
s3_file "/var/bulk/the_file.tar.gz" do
source "s3://your.bucket/the_file.tar.gz"
access_key_id your_key
secret_access_key your_secret
owner "root"
group "root"
mode 0644
You can’t perform that action at this time.