Skip to content

Instantly share code, notes, and snippets.

View disruptek's full-sized avatar
🧹
aspiring janetor

Smooth Operator disruptek

🧹
aspiring janetor
View GitHub Profile
@genotrance
genotrance / travis.sh
Last active August 29, 2020 22:14
Travis CI setup for Nim - moved to https://github.com/genotrance/nim-travis
#!/bin/bash
curl https://raw.githubusercontent.com/genotrance/nim-travis/master/travis.sh -LsSf -o travis2.sh
source travis2.sh
@genotrance
genotrance / README.md
Last active November 12, 2019 18:34
Nimble RFC for lock file support

The following RFC aims to implement lock file support for Nimble. This is being tracked in issue 127 but this proposal is a simpler variation.

Intro:

  • lock mode will be enabled by a flag in nimble.ini
    • Since it is a new feature, this will reduce impact on the existing user base
    • It can be turned on by default in the future when stable enough
  • Lock information will be stored in $prj/nim.cfg
    • Nimble will append autogenerated section if existing
    • Nimble will update when any dep changes occur
    • Nimble will consume when having to install deps
@genotrance
genotrance / README.md
Last active August 19, 2020 17:11
Nimble RFC for project local dependencies

Following is the RFC for providing project local dependencies in Nimble. This is being tracked in issue 131 and discussed in the Nim forum.

Definitions:

  • local deps mode - this RFC to enable project local dependencies where $prj/nimbledeps is used by Nimble on a per project basis
  • user deps mode - current Nimble behavior of using ~/.nimble since dependencies are usable across projects for a specific user
  • global deps mode - tracked in issue 80 where a system-wide folder can be used to store dependencies across users and projects. It is not covered in this RFC.

Motivations:

  • The main value of local deps mode is to provide dependency isolation from other projects. Isolation simply makes development easier and avoids any conflicts caused by mixing dependencies across projects.
  • local deps mode is simply a mode of operation during development and is not e
@rjhansen
rjhansen / keyservers.md
Last active April 14, 2024 12:28
SKS Keyserver Network Under Attack

SKS Keyserver Network Under Attack

This work is released under a Creative Commons Attribution-NoDerivatives 4.0 International License.

Terminological Note

"OpenPGP" refers to the OpenPGP protocol, in much the same way that HTML refers to the protocol that specifies how to write a web page. "GnuPG", "SequoiaPGP", "OpenPGP.js", and others are implementations of the OpenPGP protocol in the same way that Mozilla Firefox, Google Chromium, and Microsoft Edge refer to software packages that process HTML data.

Who am I?

@justinbmeyer
justinbmeyer / fadeInWhen.html
Last active January 3, 2016 15:39
Shows a custom `fade-in-when` attribute that fades in its element when a certain value in the scope is truthy.
<div id="app"></div>
<script src="../../lib/steal/steal.js"></script>
<script type="text/mustache" id="info-template">
<input type='radio' can-value="toggling" value="moreInfoShowing"/> moreInfoShowing</br>
<input type='radio' can-value="toggling" value="moreInfoVisible"/> moreInfoVisible</br>
<button can-click="toggle">Toggle {{toggling}}</button>
<div fade-in-when="{{toggling}}">
More Info
@rxaviers
rxaviers / gist:7360908
Last active July 23, 2024 01:33
Complete list of github markdown emoji markup

People

:bowtie: :bowtie: 😄 :smile: 😆 :laughing:
😊 :blush: 😃 :smiley: ☺️ :relaxed:
😏 :smirk: 😍 :heart_eyes: 😘 :kissing_heart:
😚 :kissing_closed_eyes: 😳 :flushed: 😌 :relieved:
😆 :satisfied: 😁 :grin: 😉 :wink:
😜 :stuck_out_tongue_winking_eye: 😝 :stuck_out_tongue_closed_eyes: 😀 :grinning:
😗 :kissing: 😙 :kissing_smiling_eyes: 😛 :stuck_out_tongue:
@philfreo
philfreo / gist:7257723
Created October 31, 2013 21:44
Facebook Perl source code from 2005. When browsing around thefacebook.com in 2005 the server spit out some server-side source code rather than running it. I believe this was for their old graph feature that let you visualize the graph between all your friends. The filename is `mygraph.svgz` and contains some gems such as a commented out "zuck" d…
#!/usr/bin/perl
use Mysql;
use strict;
use vars qw($school_name);
use vars qw($pass);
require "./cgi-lib.pl";
@innerfunction
innerfunction / capture-helper-params.js
Created August 16, 2013 18:20
Node.js module for capturing parameter values being passed to a dust.js helper. For example, if calling a helper {@Helper p1="{p1}" p2="{p2}"/}, this code will resolve values for p1 and p2 in a fully asynchronous manner before calling the helper function. Use the wrapper function as: var wrapper = require('./capture-helper-params'); helpers['myh…
// Capture templated parameter values passed to a dust.js helper function.
function captureParams(chunk, context, params, cb) {
// Object for recording resolved parameter values.
var values = {};
// Capture a single parameter value.
// @param {name} The parameter name.
// @param {next} Next step in the capture chain.
function capture( name, next ) {
return function( chunk ) {
// If the parameter value is a function then it is a dust.js template that needs to be
@mdellavo
mdellavo / pyramid-gevent-websocket.py
Created February 3, 2012 05:10
A Pyramid GEvent WebSocket Demo
from gevent import monkey, Greenlet
from gevent.queue import Queue, Empty
from gevent.pywsgi import WSGIServer
import gevent
monkey.patch_all()
from geventwebsocket.handler import WebSocketHandler
from pyramid.config import Configurator
from pyramid.view import view_config
@mjtko
mjtko / handlebarsTemplateEngine.js
Created May 12, 2011 22:39
knockout template engine for handlebars.js
/*
Handlebars Template Engine for Knockout JavaScript library
*//*!
Copyright (c) 2011 Mark J. Titorenko
License: MIT (http://www.opensource.org/licenses/mit-license.php)
*/
ko.handlebarsTemplateEngine = function () {
// adapted from MooTools.Element
//
// This is necessary to allow us to easily deal with table