Skip to content

Instantly share code, notes, and snippets.

View johncalistro's full-sized avatar

John Calistro johncalistro

View GitHub Profile
@igorbenic
igorbenic / facebook.php
Last active August 22, 2018 21:18
How to get the Share Counts from Social Media in WordPress | www.ibenic.com/how-to-get-the-share-count-from-social-media-in-wordpress
<?php
/**
* Facebook Shares
*/
class FacebookShareCount implements Share_Counter {
public static function get_share_count( $url ) {
$facebook_app_id = "YOUR_APP_ID";
$facebook_app_secret = "YOUR_APP_SECRET";
@rafaelrosafu
rafaelrosafu / python_ref.md
Last active April 1, 2023 18:17
Referências para aprender Python

Referências para aprender Python

Me perguntaram dicas sobre como aprender Python para quem nunca programou antes. Não é a minha especialidade, mas graças aos meus amigos no Twitter e no Facebook, consegui juntar uma lista de referências que espero ser útil.

Se alguém tiver mais referências, por favor, deixem comentários ou me mande uma mensagem em @rafaelrosafu.

Livros

@akitaonrails
akitaonrails / upgrading-vagrant-fusion.mdown
Created October 24, 2013 17:40
Upgrading Vagrant from the default Virtualbox provider to VMWare Fusion on the Mac

I had some headaches yesterday while trying to upgrade to VMWare Fusion with Vagrant.

The steps that work are:

  • export your boxes from Virtualbox to OVA files
  • run 'vagrant destroy' on all your boxes
  • uninstall Virtualbox using the uninstaller script in the installer DMG
  • download VMWare Fusion
  • run 'vagrant plugin install vagrant-vmware-fusion' to install the provider plugin
  • run 'vagrant plugin license vagrant-vmware-fusion license.lic' to install the license you just bought
@jbenet
jbenet / simple-git-branching-model.md
Last active April 9, 2024 03:31
a simple git branching model

a simple git branching model (written in 2013)

This is a very simple git workflow. It (and variants) is in use by many people. I settled on it after using it very effectively at Athena. GitHub does something similar; Zach Holman mentioned it in this talk.

Update: Woah, thanks for all the attention. Didn't expect this simple rant to get popular.

@meesterdude
meesterdude / README.md
Last active March 23, 2017 17:42
emoji_spec is a microgem to put emoji in your rspec output.

Emoji Spec

results Tired of the same, dull rspec output? liven it up with some emoji!

Below are the sets presently available, and their corresponding id. if you don't set an ID, one will be randomly chosen every run. Emoji icons may not render in certain terminals.

(pass, fail, pending)

emoji

@caike
caike / spec_helper.rb
Created October 25, 2012 15:09
missing translations
##
# Raises error if missing translation key
##
config.before(:all, type: :controller) do
@_i18n_exception_handler = I18n.exception_handler
I18n.exception_handler = lambda { |*args| raise args.first.to_s }
end
config.after(:all, type: :controller) do
I18n.exception_handler = @_i18n_exception_handler