Skip to content

Instantly share code, notes, and snippets.

Chase Granberry chasers

  • AuthorityLabs
View GitHub Profile
View deep-merge-test.ex
defmodule Logflare.DeepMergeTest do
# this works: DeepMerge.deep_merge(%{a: %{b: 1}, c: [d: 1]}, %{a: %{z: 5}, c: [x: 0]})
def merge() do
DeepMerge.deep_merge(newschema().fields, oldschema().fields)
end
def newschema do
%{
fields: [
View gist:7e523d66d576de9e19c2
<b>How do you feel about our support?</b><br><table cellpadding="4"><tr><td><a href="https://www.temper.io/q/jhfnbulv/r/1" style="background:#e9565c;display:block;width:44px;height:44px;max-height:44px;border:0;"><img alt="Rate: Bad" border="0" height="44" src="https://temper.io/negative.png" width="44"/></a></td><td><a href="https://www.temper.io/q/jhfnbulv/r/2" style="background:#e9c079;display:block;width:44px;height:44px;max-height:44px;border:0;"><img alt="Rate: Neutral" border="0" height="44" src="https://temper.io/neutral.png" width="44"/></a></td><td><a href="https://www.temper.io/q/jhfnbulv/r/3" style="background:#5bca83;display:block;width:44px;height:44px;max-height:44px;border:0;"><img alt="Rate: Good" border="0" height="44" src="https://temper.io/positive.png" width="44"/></a></td></tr></table>
@chasers
chasers / al-papi-web-insights-json.json
Created May 10, 2012
AuthorityLabs Web Insights JSON
View al-papi-web-insights-json.json
{
"results": {
"page_data": {
"h2_tags": [
{
"text": "‘Walk the Plank’ Unconference"
}
],
"image_tags": [
{
@chasers
chasers / bing-papi-locales.json
Created Apr 11, 2012 — forked from authoritylabs/bing-papi-locales.json
AuthorityLabs Supported Bing Partner API Locales
View bing-papi-locales.json
{
"locales": {
"ko-kr": {
"tld": "http://bing.com/?setmkt=ko-jr&setlang=match",
"description": "Korea - Korean"
},
"it-it": {
"tld": "http://bing.com/?setmkt=it-it&setlang=match",
"description": "Italy - Italian"
},
@chasers
chasers / yahoo-papi-locales.json
Created Apr 11, 2012 — forked from authoritylabs/yahoo-papi-locales.json
AuthorityLabs Supported Yahoo! Partner API Locales
View yahoo-papi-locales.json
{
"locales": {
"es-us": {
"tld": "espanol.search.yahoo.com",
"description": "United States - Spanish"
},
"en-tw": {
"tld": "tw.search.yahoo.com",
"description": ""
},
@chasers
chasers / al-json-serp-local_pack.json
Created Mar 28, 2012
AuthorityLabs JSON Google SERP with local_pack Results
View al-json-serp-local_pack.json
{
"total_number_of_results": 663000,
"blog_posts": false,
"video_packs": [],
"invalid_term": false,
"integrated_places": false,
"rank_date": "2012-03-28",
"data_center": "us",
"s3_key": "",
"_id": "4f735025009e6123a3000008",
@chasers
chasers / al-json-serp-brandpack-local.json
Created Mar 10, 2012
AuthorityLabs JSON SERP with Brand Pack & Traditional Local Pack
View al-json-serp-brandpack-local.json
{
"total_number_of_results": 3240000,
"blog_posts": false,
"video_packs": [],
"invalid_term": false,
"integrated_places": false,
"rank_date": "2012-03-09",
"data_center": "us",
"s3_key": "",
"_id": "4f5a6ef785d6691eec00004c",
@chasers
chasers / al-json-serp-brand-pack.json
Created Mar 7, 2012
AuthorityLabs JSON Google SERP with Brand Pack
View al-json-serp-brand-pack.json
{
"total_number_of_results": 6040000,
"blog_posts": false,
"video_packs": [
12,
25,
35
],
"invalid_term": false,
"integrated_places": false,
@chasers
chasers / al-json-serp-ads.json
Created Mar 6, 2012
AuthorityLabs JSON Google SERP with Ads
View al-json-serp-ads.json
{
"total_number_of_results": 47300000,
"blog_posts": false,
"video_packs": [
33
],
"invalid_term": false,
"integrated_places": false,
"rank_date": "2012-03-06",
"data_center": "us",
@chasers
chasers / fb-page-json.json
Created Oct 22, 2011
Facebook Page in JSON via the Partner API
View fb-page-json.json
{
"results": {
"profile_about_more": " ",
"profile_about": " ",
"wall": [
{
"title": "Shrek",
"body": "Challenge accepted, Donkey! Just call me the big green slicing machine! How about you? Check out the all-new FRUIT NINJA: PUSS IN BOOTS and tell me your highest score! http://bit.ly/rd6CIl",
"attachment": {
"details": "",
You can’t perform that action at this time.