Skip to content

Instantly share code, notes, and snippets.

Decentralize and democratize the Web.

Jacky Alciné jalcine

Decentralize and democratize the Web.
Block or report user

Report or block jalcine

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
jalcine / helper_commands.vim
Created Apr 30, 2014
Random commands for LYFE.
View helper_commands.vim
" Reformats JSON in current buffer nicely.
:%!python -m json.tool
View mother.js
var $a = $(elem), theUrl = $a.attr('data-uri');

Subway Info


Screenshot 1: Screenshot 2:


Subway Info is a Dashing widget which displays information on trains in New York City. Information includes train line, direction, station and arrival time. You can customize it to include any combination of lines and stations. This may also be used in other cities as well if you have the appropriate GTFS files.


Architectural Questions

  • Are responsibilities well defined?
  • Are the collaborations well defined?
  • Is coupling minimized?
  • Can you identify potential duplication?
  • Are interface definitions and constraints acceptable?
  • Can modules access needed data—when needed?
View gist:e053098415cf294a5a19
/** The '<?=' is the same as '<?php echo'. A shortcut. */
$record_text = __('Viewing {0} - {1} of {2}');
$invoices_url = url_for('account_billing/getInvoices') . '?year=';
$vat_entries = <<<VAT_INFO
{name:'invoice_amount', index:'invoice_amount', width:150, sortable:false, resizable:false, align:'right'},
{name:'vat_amount', index:'vat_amount', width:150, sortable:false, resizable:false, align:'right'},
jalcine / pain_point.cpp
Created Aug 31, 2014
Pain Point in Wintermute
View pain_point.cpp
// Snatched from
if (libraryPtr->isLoaded())
wwarn("Unloading plugin " + name + "'s library...");
if (libraryPtr->unload())
wwarn("Unloaded library for plugin " + name + "!");
View media-queries.scss
@media (min-width:320px) { /* smartphones, portrait iPhone, portrait 480x320 phones (Android) */ }
@media (min-width:480px) { /* smartphones, Android phones, landscape iPhone */ }
@media (min-width:600px) { /* portrait tablets, portrait iPad, e-readers (Nook/Kindle), landscape 800x480 phones (Android) */ }
@media (min-width:801px) { /* tablet, landscape iPad, lo-res laptops ands desktops */ }
@media (min-width:1025px) { /* big landscape tablets, laptops, and desktops */ }
@media (min-width:1281px) { /* hi-res laptops and desktops */ }
View 03_fs_readsync.c
#include "learnuv.h"
#define BUF_SIZE 37
static const char *filename = __MAGIC_FILE__;
int main() {
int r = 0;
uv_loop_t *loop = uv_default_loop();
/* 1. Open file */
View foo
(gdb) run
Starting program: /home/jalcine/Development/Scratch/a.out
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/lib/x86_64-linux-gnu/".
Program received signal SIGABRT, Aborted.
0x00007ffff7828e37 in __GI_raise (sig=sig@entry=6) at
56 ../nptl/sysdeps/unix/sysv/linux/raise.c: No such file or directory.
(gdb) bt
jalcine / HTTP_API.markdown
Last active Aug 29, 2015
A bunch of ideas for using HTTP as a API platform.
View HTTP_API.markdown

Leveraging HTTP as a Basis for Interacting with APIs

Unauthenticated Requests

Using ['s API][lastfm] as an example; let's wrap this call

HTTP/API: lastfm://user/jackyalcine/currentTracks?size=5
You can’t perform that action at this time.