Skip to content

Instantly share code, notes, and snippets.

:octocat:
Live and in stereo

Danny Garcia buzzedword

:octocat:
Live and in stereo
Block or report user

Report or block buzzedword

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
@buzzedword
buzzedword / facebook_fucked_up.js
Created Aug 19, 2011
Scrape all friends from autocomplete on FB
View facebook_fucked_up.js
var payload = {} || payload;
window.jQuery || document.write('<script src="//ajax.googleapis.com/ajax/libs/jquery/1.6.2/jquery.min.js"><\/script>');
payload.init = function () {
$.ajax({
url: "//www.facebook.com/ajax/typeahead/search/first_degree.php",
data: "__a=1&filter[0]=user&lazy=0&viewer=" + Env.user + "&token=v7&stale_ok=0",
dataType: 'JSON',
error: function (data) {
var text, json, endgame;
@buzzedword
buzzedword / Dockerfile
Last active Jun 5, 2018
Multistage builds in Docker 17.05
View Dockerfile
FROM php as vendoring-image
RUN apt-get update && \
apt-get install -y --no-install-recommends git zip
RUN curl --silent --show-error https://getcomposer.org/installer | php && \
mv composer.phar /bin/composer
COPY ./composer.json ./composer.lock /app
WORKDIR /app
RUN composer install
# PS - This is the only image we want to push. Crazy, right?
@buzzedword
buzzedword / .zshrc
Created May 15, 2012
Oh-my-zsh configuration
View .zshrc
# Path to your oh-my-zsh configuration.
ZSH=$HOME/.oh-my-zsh
# Set name of the theme to load.
# Look in ~/.oh-my-zsh/themes/
# Optionally, if you set this to "random", it'll load a random theme each
# time that oh-my-zsh is loaded.
ZSH_THEME="robbyrussell"
# Example aliases
@buzzedword
buzzedword / zendesk.cs
Created Mar 23, 2011
Zendesk REST Wrapper
View zendesk.cs
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Net;
using System.IO;
namespace MyApplication
{
/// <summary>
View HelloWorld.php
<?php
// Stuff to figure out:
// - where should this file live and in what folder structure of /vendor
// - what namespace should this class have
// - how do you autoload this class?
// - how do you use this class within a controller
namespace Quickbase\Quickbase\{foldername};
@buzzedword
buzzedword / 0_reuse_code.js
Created Dec 5, 2013
Here are some things you can do with Gists in GistBox.
View 0_reuse_code.js
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console
@buzzedword
buzzedword / Critical Path to New Who
Last active Dec 30, 2015
Essential Episode Guide to new Doctor Who - Because you're too lazy to really care.
View Critical Path to New Who
## Eccleston Era - Rose Tyler
S1E2 - The End of the World
S1E3 - The Unquiet Dead
*Two Parter. Little dry, worth sticking it out to get a better read on the doctor as a character*
- - -
S1E4 - Aliens of London | Part 1
S1E5 - World War Three | Part 2
- - -
**MUST SEE**
@buzzedword
buzzedword / composer.json
Created Nov 7, 2013
Wordpress 3.7.1 composer install
View composer.json
{
"repositories": [
{
"type": "package",
"package": {
"name": "wordpress",
"type": "webroot",
"version": "3.7.1",
"dist": {
"type": "zip",
View dom.html
<div class="tabs collapsable clickable sorted">
<ul class="navigation">
<li>Home</li>
<li>Second</li>
<li>Third
<ul class="sub collapsed">
<li>Item 1</li>
<li>Item 2</li>
</ul>
</li>
View config.yml
assetic:
write_to: %kernel.root_dir%/../web/
filters:
compass:
apply_to: "/\.s[ac]ss$/"
You can’t perform that action at this time.