Skip to content

Instantly share code, notes, and snippets.

View blackfry's full-sized avatar
🤷‍♂️

Mark Dickie blackfry

🤷‍♂️
  • Cayman Pty Ltd
  • Sydney Australia
View GitHub Profile
@blackfry
blackfry / frac-diff_sk
Created July 30, 2021 11:29 — forked from skuttruf/frac-diff_sk
Python code for fractional differencing of pandas time series
"""
Python code for fractional differencing of pandas time series
illustrating the concepts of the article "Preserving Memory in Stationary Time Series"
by Simon Kuttruf
While this code is dedicated to the public domain for use without permission, the author disclaims any liability in connection with the use of this code.
"""
import numpy as np
import pandas as pd
{
"name": "template",
"version": "0.1.0",
"private": true,
"dependencies": {
"@testing-library/jest-dom": "^4.2.4",
"@testing-library/react": "^9.3.2",
"@testing-library/user-event": "^7.1.2",
"react": "^16.13.1",
"react-dom": "^16.13.1",
{
"compilerOptions": {
"target": "ESNext",
"module": "ESNext",
"lib": ["ESNext", "dom"],
"allowJs": true,
"jsx": "react",
"sourceMap": true,
"outDir": "build",
"rootDir": "src",
@blackfry
blackfry / keybindings.json
Created March 10, 2020 23:17
console.log shortcut vs code
[
{
"key": "shift+z",
"command": "type",
"args": {
"text": "console.log()"
},
"when": "editorTextFocus"
}
]
@blackfry
blackfry / jest.config.js
Created April 14, 2019 21:51
jest config file
module.exports = {
verbose: true,
collectCoverage: true,
collectCoverageFrom: ['**/*.{js,jsx}', '!**/node_modules/**']
};
@blackfry
blackfry / launch.json
Created April 14, 2019 21:49
vscode launch json for jest runner
{
// Use IntelliSense to learn about possible attributes.
// Hover to view descriptions of existing attributes.
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
"version": "0.2.0",
"configurations": [
{
"type": "node",
"request": "attach",
"name": "Attach",
@blackfry
blackfry / settings.json
Created April 14, 2019 21:48
vscode settings for jest runner
{
"python.pythonPath": "/Users/markdickie/.pyenv/versions/data-service/bin/python",
"jest.showCoverageOnLoad": true,
"files.exclude": {
"out": true,
"node_modules/jest-editor-support/src": false,
"coverage/": true
},
"search.exclude": {
"out": true,
@blackfry
blackfry / filterFn.js
Last active February 26, 2019 05:12
JS filter elements
/**
https://www.hackerrank.com/challenges/filter-elements/problem
------
Given a list of N integers A = [a1, a2, ..., aN], you have to
find those integers which are repeated at least K times.
In case no such element exists you have to print -1.
If there are multiple elements in A which are repeated at least K times,
then print these elements ordered by their first occurrence in the list.
*/

Keybase proof

I hereby claim:

  • I am blackfry on github.
  • I am blackfry (https://keybase.io/blackfry) on keybase.
  • I have a public key ASAMTlHS0KiWfsYXPWCGo8RQsnbH90EPOmOqtD-TaX6mvQo

To claim this, I am signing this object:

@blackfry
blackfry / bulletproof-git-workflow.md
Created May 23, 2017 01:48 — forked from db/bulletproof-git-workflow.md
bulletproof git workflow

Bulletproof Git Workflow

start working

git checkout master
git pull
git checkout -b feature/my-work
# edit your files