Skip to content

Instantly share code, notes, and snippets.

Avatar
🚢
shippin'

Victor Miroshnikov superduper

🚢
shippin'
View GitHub Profile
@sasso
sasso / index.html
Last active Nov 27, 2020
GraphiQL with JWT
View index.html
<!DOCTYPE html>
<html>
<head>
<style>
body {
height: 100%;
margin: 0;
width: 100%;
overflow: hidden;
}
@piranha
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
nevang / JsBSONHandlers.scala
Last active Mar 8, 2016
Reader and writer in order to work with spray-json and reactivemongo. Based on https://github.com/zenexity/Play-ReactiveMongo.
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
akaihola / .gitignore
Last active Apr 7, 2020
streaming-json-encoder
View .gitignore
*.pyc
/bin
/include
/lib
@andyedinborough
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
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
end
You can’t perform that action at this time.