Skip to content

Instantly share code, notes, and snippets.

👋
Coding

Zander Martineau mrmartineau

👋
Coding
Block or report user

Report or block mrmartineau

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
@mrmartineau
mrmartineau / stimulus.md
Last active Oct 17, 2019
Stimulus cheatsheet
View stimulus.md
@mrmartineau
mrmartineau / array_iteration_thoughts.md
Last active Jul 26, 2019 — forked from ggauravr/array_iteration_thoughts.md
Array iteration methods summarized
View array_iteration_thoughts.md

While attempting to explain JavaScript's reduce method on arrays, conceptually, I came up with the following - hopefully it's helpful; happy to tweak it if anyone has suggestions.

Intro

JavaScript Arrays have lots of built in methods on their prototype. Some of them mutate - ie, they change the underlying array in-place. Luckily, most of them do not - they instead return an entirely distinct array. Since arrays are conceptually a contiguous list of items, it helps code clarity and maintainability a lot to be able to operate on them in a "functional" way. (I'll also insist on referring to an array as a "list" - although in some languages, List is a native data type, in JS and this post, I'm referring to the concept. Everywhere I use the word "list" you can assume I'm talking about a JS Array) This means, to perform a single operation on the list as a whole ("atomically"), and to return a new list - thus making it much simpler to think about both the old list and the new one, what they contain, and

@mrmartineau
mrmartineau / grid.md
Last active Jun 24, 2019
CSS grid snippets
View grid.md

Basic grid

.grid {
  display: grid;
  grid-gap: 30px;
  grid-template-columns: repeat(auto-fill, 112px);
  /* or this */
  grid-template-columns: repeat(auto-fill, minmax(112px, 1fr));
}
@mrmartineau
mrmartineau / offsec.md
Created Nov 18, 2017 — forked from jivoi/offsec.md
Penetrating Testing/Assessment Workflow
View offsec.md

Penetrating Testing/Assessment Workflow & other fun infosec stuff

https://github.com/jivoi/pentest

My feeble attempt to organize (in a somewhat logical fashion) the vast amount of information, tools, resources, tip and tricks surrounding penetration testing, vulnerability assessment, and information security as a whole*

@mrmartineau
mrmartineau / settings.json
Last active Dec 17, 2018
vscode settings.json
View settings.json
{
"auto-rename-tag.activationOnLanguage": ["*"],
"bookmarks.treeview.visible": false,
"bracketPairColorizer.showBracketsInGutter": true,
"breadcrumbs.enabled": true,
"css.validate": false,
"diffEditor.ignoreTrimWhitespace": false,
"editor.autoIndent": true,
"editor.codeActionsOnSave": {
"source.organizeImports": false
@mrmartineau
mrmartineau / cloudSettings
Last active Nov 18, 2018
VS Code settings
View cloudSettings
{"lastUpload":"2017-03-24T23:22:48.050Z","extensionVersion":"v2.6.1"}
View icons.scss
// 3rd party brand colors - find more at brandcolors.net
$color-twitter : #55acee;
$color-facebook : #3b5998;
$color-youtube : #cd201f;
$color-pinterest : #bd081c;
$color-instagram : #e4405f;
$color-whatsapp : #25D366;
.socialCTA {
background-color: rgba(#fff, .2);
View chrome-extensions.md
  • 1Password extension
  • Pesticide for Chrome
  • JSON Formatter
  • Octotree
  • Octo Preview
  • Feature Queries Manager
  • Copy as Markdown
  • React Developer Tools
  • Copy Title and Url as Markdown Style
  • Refined GitHub
You can’t perform that action at this time.