Skip to content

Instantly share code, notes, and snippets.

import pglast
from pglast.printer import IndentedStream
import pglast.printers
import pytest
from walker import walker
CREATE_SQL = """
CREATE TABLE public."order" (
# -*- coding: utf-8 -*-
# :Project: journey -- dialog component
# :Created: lun 16 mar 2020, 02:56:55
# :Author: Alberto Berti <alberto@metapensiero.it>
# :License: GNU General Public License version 3 or later
# :Copyright: © 2020 Alberto Berti
#
defmodule Journey.Manage.Components.Dialog do
use Phoenix.LiveComponent
@azazel75
azazel75 / test.nix
Created March 25, 2019 18:37
nix build that fails
let
localPkgs = import <nixpkgs> {};
# nixos-18.09-small Released on 2019-03-02
stableRev = "80754f5cfd69d0caf8cff6795d3ce6d99479abde";
mkNixOSURL = rev:
"https://github.com/NixOs/nixpkgs-channels/archive/${rev}.tar.gz";
stableURL = mkNixOSURL stableRev;
stableBall = fetchTarball {
url = stableURL;
sha256 = "1v8g68gqgij389dssh6ry5x1zlhpgcgwjac0rgrh8146gf9hq74f";
<?php
$CONFIG = array (
'mail_domain' => '@mailDomain@',
'mail_smtpmode' => 'sendmail',
'datadirectory' => '@dataDir@',
'apps_paths' =>
array (
0 =>
array (
'path' => '@apps2Dir@',
@azazel75
azazel75 / misumi_inventory_lookup.user.js
Created May 2, 2016 17:38
Lasersaur Misumi inventory lookup for build steps
// ==UserScript==
// @name Lasersaur Misumi inventory lookup for build steps
// @namespace laserlab
// @include http://www.lasersaur.com/manual/build/step*
// @version 1
// @grant none
// ==/UserScript==
(function() {
'use strict';
@azazel75
azazel75 / ServerRack.py
Last active August 29, 2015 14:24 — forked from denik/ServerRack.py
# Class for managing multiple servers or anything with start() and stop() methods
class ServerRack(object):
def __init__(self, servers):
self.servers = servers
def start(self):
started = []
try:
@azazel75
azazel75 / index.html
Created October 15, 2014 19:13
error eat when json is used
none