Skip to content

Instantly share code, notes, and snippets.

View dannolan's full-sized avatar
😄
loged on

Dan Nolan dannolan

😄
loged on
View GitHub Profile

List of Block Declaration Syntaxes

Throughout, let

  • return_type be the type of object/primitive/etc. you'd like to return (commonly void)
  • blockName be the variable name of the block you're creating
  • var_type be the type object/primitive/etc. you'd like to pass as an argument (leave blank for no parameters)
  • varName be the variable name of the given parameter And remember that you can create as many parameters as you'd like.

Blocks as Variables

Possibly the most common for of declaration.

@dannolan
dannolan / sds.txt
Created September 8, 2016 23:50
Shit dan says
Are you in some kind of warzone? Oh, that's terrible
NDA the size of a human skull
what's punting
@dannolan
dannolan / main.go
Created March 2, 2018 04:50
Go Range Request
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Range", "bytes=0-5088")
var client http.Client
resp, _ := client.Do(req)
@dannolan
dannolan / confluencebreaker.md
Created July 18, 2018 05:02
Markdown that breaks Confluence

Analytics Runthrough

Campaign Types

  • item one
  • item two
  • item three

This is how we take items and return them to our thing this is more content to show that we have content and it is not workign in a way that we nwant it to work.

@dannolan
dannolan / TwitterIndiaOutput.json
Created November 25, 2019 22:16
Twitter India - Updated Output
{
"id": "46007404-a7e4-4637-b093-4dca9c8a9c8c",
"hashtag": "#SingleLife",
"total": 4,
"sentiment": {
"positive": 25,
"negative": 75
},
"users": [
{