Skip to content

Instantly share code, notes, and snippets.

View tomasdelvechio's full-sized avatar
🧉
Coding

Tomas tomasdelvechio

🧉
Coding
View GitHub Profile
@tomasdelvechio
tomasdelvechio / sublime-phpcs.md
Created August 6, 2020 02:09 — forked from scrubmx/sublime-phpcs.md
Setup Phpcs for Sublime Text

Setup Phpcs for Sublime Text

This plugin adds PHP CodeSniffer, PHP Code Beautifier and Fixer, PHP Coding Standards Fixer, the PHP Linter, PHP Mess Detector, Scheck support to Sublime Text.

For more information about this plugin such as features, installation requirements etc, please see: http://benmatselby.github.io/sublime-phpcs

Prerequisites

  • Download and install composer
curl -sS https://getcomposer.org/installer | php 
@tomasdelvechio
tomasdelvechio / http2.py
Last active May 2, 2020 00:13
HTTP Servers de Ejemplo para TP - HTTP de TyR
#!/usr/bin/env python
# coding: utf-8
import http.server
HOST_NAME = 'localhost'
PORT = 8000
class Handler(http.server.BaseHTTPRequestHandler):
#!/bin/bash -x
DEBUG=4
PUNTODEMONTAJE=/vos/sabras
rdiff-backup -v$DEBUG --print-statistics \
--exclude ~/.local/share/Steam/ \
--exclude ~/.cache \
--exclude ~/netkit \
--exclude ~/.steam \
--exclude ~/snap \
--exclude ~/.config/google-chrome \
@tomasdelvechio
tomasdelvechio / trac2down.py
Created August 2, 2019 21:32 — forked from pommi/trac2down.py
Trac Wiki to Markdown converter
#!/usr/bin/python
# vim:set fileencoding=utf-8 sw=2 ai:
# downloaded from https://gist.github.com/tcchau/4628317
# ... which is a fork from https://gist.github.com/sgk/1286682
import sqlite3
import datetime
import re
# additional imports --ah
@tomasdelvechio
tomasdelvechio / dijkstra.cpp
Created April 17, 2019 00:50
Dijkstra Algorithm with SNAP Library
#include "Snap.h"
int main(int argc, char* argv[]) {
TFIn FIn(argv[1]);
PNEANet Graph = TNEANet::Load(FIn);
printf("Load Graph\n");
TIntFltH NDistH(Graph->GetNodes());
TFltV vec ;
int out = TSnap::GetWeightedShortestPath(Graph, 0, NDistH, vec);
@tomasdelvechio
tomasdelvechio / ncdc.sh
Last active March 24, 2016 17:18 — forked from aligusnet/ncdc.sh
#!/usr/bin/env bash
# global parameters
g_tmp_folder="ncdc_tmp";
g_output_folder="ncdc_data";
g_remote_host="ftp.ncdc.noaa.gov";
g_remote_path="pub/data/noaa";