Skip to content

Instantly share code, notes, and snippets.

View kistters's full-sized avatar
coding.

Rafael Kisters Ventura kistters

coding.
View GitHub Profile
@igor822
igor822 / .vimrc
Last active February 28, 2019 23:54
Meu vim
set shell=bash\ --login
set shellcmdflag=-c
set encoding=utf-8
set t_Co=256
set t_ut=
set tabstop=4
set shiftwidth=4
set softtabstop=4
set expandtab
set lazyredraw
@jonatanrdsantos
jonatanrdsantos / csv-to-varienObject.md
Last active October 17, 2016 14:26
Class To convert CSV data to Varien_Object

##Code

<?php
class Package_Module_Model_System_Config_Backend_ProcessCsv extends Varien_Object
{
    private $_csvFilePath;
    private $_headerIsValid;
    private $_validCsvHeader;
    private $_csvFileAsVarienFileCsv;
    private $_csvFileAsVarienObject;
@devStepsize
devStepsize / slack_webhook_post.py
Last active August 7, 2023 09:28
POST a JSON payload to a Slack Incoming Webhook using Python requests
'''
This is an example of how to send data to Slack webhooks in Python with the
requests module.
Detailed documentation of Slack Incoming Webhooks:
https://api.slack.com/incoming-webhooks
'''
import json
import requests
#!/usr/bin/env python
#
# Converts any integer into a base [BASE] number. I have chosen 62
# as it is meant to represent the integers using all the alphanumeric
# characters, [no special characters] = {0..9}, {A..Z}, {a..z}
#
# I plan on using this to shorten the representation of possibly long ids,
# a la url shortenters
#