Skip to content

Instantly share code, notes, and snippets.

View archiewald's full-sized avatar
🍅

Artur Kozubek archiewald

🍅
View GitHub Profile
@archiewald
archiewald / index.html
Created February 24, 2018 08:05
JS Bin My very first code snippet // source http://jsbin.com/qafivov/2
<!DOCTYPE html>
<html>
<head>
<meta name="description" content="My very first code snippet">
<meta charset="utf-8">
<meta name="viewport" content="width=device-width">
<title>JS Bin</title>
</head>
<body>
@archiewald
archiewald / index.html
Created March 10, 2018 16:06
JS Bin check a condition on various types // source http://jsbin.com/canipuv
<!DOCTYPE html>
<html>
<head>
<meta name="description" content="check a condition on various types">
<meta charset="utf-8">
<meta name="viewport" content="width=device-width">
<title>JS Bin</title>
</head>
<body>
@archiewald
archiewald / douchebag-vertical-align.css
Last active January 2, 2019 21:05 — forked from colintoh/douchebag-vertical-align.css
[douchebag vertical alignment] silly vertical alignment #css
.element {
position: relative;
top: 50%;
transform: translateY(-50%);
}
@archiewald
archiewald / snippet.sh
Last active January 2, 2019 21:13
[merge develop into current branch] with hubflow #git
git hf update
git merge develop
# TODO - how to without hf?
@archiewald
archiewald / snippet.sh
Created January 2, 2019 21:18
[list all files]
ls -a
@archiewald
archiewald / tables.html
Created January 2, 2019 21:32
[tables] html tables examples #html
<p>copied from MDN</p>
<p>Simple table with header</p>
<table>
<tr>
<th>First name</th>
<th>Last name</th>
</tr>
<tr>
<td>John</td>
@archiewald
archiewald / names.md
Created January 5, 2019 11:23
[blog name] ideas for blog #blog
  • quackingabout.com
  • wequack.com
  • mequack.com
  • quackmeabout.com
  • quackbro.com
  • quackingaround.net
  • learnquack.com
  • quack.tips
  • typescript.tips
  • typescript.life
@archiewald
archiewald / notes.md
Last active January 8, 2019 06:27
[:last-of-type vs :last-child] #css

:last-of-type

/* :last-of-type selects any <p> that is the last element
   of its type among its siblings */
p:last-of-type {
  color: lime;
}
@archiewald
archiewald / howto.md
Created January 8, 2019 16:08
[merge remote branch to local] #git

Fetch the remote branch from the origin first

git fetch origin remote_branch_name

Merge the remote branch to the local branch

git merge origin/remote_branch_name
@archiewald
archiewald / note.md
Last active January 20, 2019 13:38
[Function as Children] #react #javascript

Used in react-dropzone docs

import React from 'react'
import classNames from 'classnames'
import Dropzone from 'react-dropzone'

class MyDropzone extends React.Component {
   onDrop = (acceptedFiles, rejectedFiles) => {
 // Do something with files