Skip to content

Instantly share code, notes, and snippets.


Alejandro Exojo suy

View GitHub Profile
suy / main.cpp
Created May 25, 2020
A simple tool to sort and print in a more human readable form the compiler output
View main.cpp
#include <QtCore>
static void dump(const char* name, const QStringList& variable) {
QTextStream out(stdout);
out << variable.count() << " " << name << endl;
foreach (const QString& item, variable) {
out << " " << item << endl;
oKcerG / colattachedtype.cpp
Last active Apr 5, 2017
Bootstrap grid system PoC in QML
View colattachedtype.cpp
#include "colattachedtype.h"
#include <QQuickItem>
#include <QQuickWindow>
#include <QQmlInfo>
ColAttachedType::ColAttachedType(QObject* parent) :
if (!m_item) {
ssokolow / firefox_migration.rst
Last active Feb 25, 2019
Disaster Plans for Firefox XUL Sunset
View firefox_migration.rst

Disaster Plans for Firefox XUL Sunset

Public URL:Github Gist
Status: Incomplete
Last Updated:2018-08-23 04:10 EDT

Threat Summary

edsu /
Last active Sep 21, 2020
Try to get replies to a particular set of tweets, recursively.
#!/usr/bin/env python
Twitter's API doesn't allow you to get replies to a particular tweet. Strange
but true. But you can use Twitter's Search API to search for tweets that are
directed at a particular user, and then search through the results to see if
any are replies to a given tweet. You probably are also interested in the
replies to any replies as well, so the process is recursive. The big caveat
here is that the search API only returns results for the last 7 days. So
#include <cassert>
#include <memory> // std::addressof
template<typename ResourceTag, typename ResourceType> class Resource {
Resource() noexcept = default;
explicit Resource(ResourceType resource) noexcept : resource_{ resource } {}
Resource(const Resource&) = delete;
Resource& operator=(const Resource&) = delete;
jbache / NavigationDrawer.qml
Created Dec 1, 2014
Qt Quick Navigation Drawer
View NavigationDrawer.qml
Copyright (c) 2014 Cutehacks A/S
Permission is hereby granted, free of charge, to any person obtaining
a copy of this software and associated documentation files (the
"Software"), to deal in the Software without restriction, including
without limitation the rights to use, copy, modify, merge, publish,
distribute, sublicense, and/or sell copies of the Software, and to
permit persons to whom the Software is furnished to do so, subject to
the following conditions:
ddrown / prune
Created Oct 20, 2014
Expire quassel backlog
View prune
#!/usr/bin/env python
# -*- coding: utf-8 -*-
# run this in the directory ~/.config/
import sqlite3
import time
con = sqlite3.connect('quassel-storage.sqlite')
with con:
willprice / .travis.yml
Last active Sep 8, 2020
How to set up TravisCI for projects that push back to github
View .travis.yml
# Ruby is our language as asciidoctor is a ruby gem.
lang: ruby
- sudo apt-get install pandoc
- gem install asciidoctor
- make
- .travis/
gfixler / EasyJumpPreciseMotionAce.vim
Created Jul 24, 2012
A Vim take on Emacs' AceJump mode, itself based on Vim's PreciseJump and EasyMotion plugins
View EasyJumpPreciseMotionAce.vim
" Based on emacs' AceJump feature (
" AceJump based on these Vim plugins:
" EasyMotion (
" PreciseJump (
" Type AJ mapping, followed by a lower or uppercase letter.
" All words on the screen starting with that letter will have
" their first letters replaced with a sequential character.
" Type this character to jump to that word.
You can’t perform that action at this time.