Skip to content

Instantly share code, notes, and snippets.

package main
import "fmt"
type Foo struct {
whitelist []string
}
func main() {
foo := new(Foo)
{
"version": "3.0.0",
"gauges": {
"jvm.gc.heap.max": {
"value": 123
}
},
"counters": {
"big_messages,dim1=val1,dim2=val2": {
"count": 100
(source gnu)
(source marmalade)
(source melpa)
(depends-on "[cl-struct-package-desc git-gutter-fringe (20131117 2335) Fringe version of git-gutter.el [github] ((git-gutter (0 42)) (fringe-helper (0 1 1))) single melpa nil]")
(depends-on "[cl-struct-package-desc icicles (20140115 354) Minibuffer input completion and cycling. nil tar melpa nil nil nil]")
(depends-on "[cl-struct-package-desc smart-mode-line (20131126 1625) A color coded smart mode-line. ((emacs (24 3)) (dash (2 2 0))) single melpa nil]")
(depends-on "[cl-struct-package-desc zenburn-theme (20131119 1158) A low contrast color theme for Emacs. nil single melpa nil]")
(depends-on "ac-js2")
(depends-on "ace-jump-mode")
#include "sortobjectproxymodel.h"
SortObjectProxyModel::SortObjectProxyModel(QObject *parent) :
QSortFilterProxyModel(parent)
{
}
bool SortObjectProxyModel::hasChildren(const QModelIndex &parent) const
{
const QModelIndex sourceIndex = mapToSource(parent);
#include "heapdatamodel.h"
namespace RBKit {
HeapDataModel::HeapDataModel(HeapItem * _item, QObject *parent)
: QAbstractItemModel(parent), rootItem(_item)
{
}
HeapDataModel::~HeapDataModel() {
// delete items;
require "msgpack"
require "socket"
class Bar
end
class Server
attr_accessor :server, :exit_now
def initialize
@server = TCPServer.new("0.0.0.0", 8123)
(require 'term)
(defun visit-ansi-term ()
"If the current buffer is:
1) a running ansi-term named *ansi-term*, rename it.
2) a stopped ansi-term, kill it and create a new one.
3) a non ansi-term, go to an already running ansi-term
or start a new one while killing a defunt one"
(interactive)
(let ((is-term (string= "term-mode" major-mode))
(is-running (term-check-proc (buffer-name)))
module DeBouncer
def self.extened(base)
class << base
@deboucner_module = nil
end
end
def debounce(method_name, time)
if @debouncer_module
@debouncer_module.create_debouncer(method_name, time)
@gnufied
gnufied / gist:7333061
Last active December 27, 2015 13:28
AllCops:
RunRailsCops: true
Excludes:
- db/**
HashSyntax:
Description: 'Use either hash rocket or 1.9 styled hashes.'
Enabled: false
LineLength:
@gnufied
gnufied / gist:7228158
Created October 30, 2013 06:54
Robe usage
configuration:
(require 'robe)
(add-hook 'enh-ruby-mode-hook 'robe-mode)
Usage:
I have noticed that when inf-ruby mode loads pry it just hangs because of
pry trying to be smart about determining terminal type. It is
not a problem with robe per se, but the fact that pry is unusable from