Skip to content

Instantly share code, notes, and snippets.

Chase Granberry chasers

  • AuthorityLabs
Block or report user

Report or block chasers

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
View cloudflare_api.ex
def event(conn, params) do
user_token = params["authentications"]["account"]["token"]["token"]
response =
build_response(conn, user_token)
|> Jason.encode!()
conn
|> put_resp_content_type("application/json")
|> send_resp(200, response)
View install_response_body_json.ex
%{
"install" => %{
"active" => true,
"amount" => 0,
"appId" => "local",
"created" => nil,
"deactivatedAt" => nil,
"deleted" => false,
"id" => "FJj9ri2UtwIv",
"installerUserId" => "",
View install_request_body.ex
%{
"app" => %{
"adminVisible" => false,
"agreements" => nil,
"alias" => "",
"author" => "",
"categoryIds" => nil,
"codeVersion" => "",
"color" => "",
"created" => nil,
View install_step_1.json
{
"$schema":"http://json.schemastore.org/install",
"workers":[
{
"src":"./build/worker.js"
}
],
"hooks":[
{
"endpoint":"http://dev.chasegranberry.net/webhooks/cloudflare/v1",
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",
You can’t perform that action at this time.