Skip to content

Instantly share code, notes, and snippets.

View newswim's full-sized avatar
🦬
Hi

Dan Minshew newswim

🦬
Hi
View GitHub Profile
// http://jswarrior.fusioncharts.com/level/6
// Level 6
jsWarrior.turn = function(warrior) {
console.log('warrior.check()', warrior.check())
const isEnemy = warrior.check() == "enemy"
const diamond = warrior.check() == "diamond"
@newswim
newswim / theme2.css
Created January 18, 2019 15:26
Another Slack Dark Mode
body { background: #222; color: #e6e6e6; }
a { color: #949494; }
a:link, a:visited { color: #949494; }
a:hover, a:active, a:focus { color: #c7c7c7; }
hr { border-bottom: 1px solid #424242; border-top: 1px solid #222; }
@newswim
newswim / theme.css
Created October 3, 2018 02:15
Slack Dark Mode
body { background: #222; color: #e6e6e6; }
a { color: #949494; }
a:link, a:visited { color: #949494; }
a:hover, a:active, a:focus { color: #c7c7c7; }
hr { border-bottom: 1px solid #424242; border-top: 1px solid #222; }
@newswim
newswim / FlowReactTutorial.js
Created June 9, 2018 18:36 — forked from busypeoples/FlowReactTutorial.js
Flow Fundamentals For ReactJS Developers
//
// MIT License
//
// Copyright (c) 2018 Ali Sharif
//
// Permission is hereby granted, free of charge, to any person obtaining a copy
// of this software and associated documentation files (the "Software"), to deal
// in the Software without restriction, including without limitation the rights
// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
// copies of the Software, and to permit persons to whom the Software is
@newswim
newswim / arch.txt
Created January 26, 2018 21:31
Architecture options
+-+-+-+-+-+-+ +-+ +-+-+-+-+-+-+ +-+
|O|p|t|i|o|n| |1| |O|p|t|i|o|n| |2|
+-+-+-+-+-+-+ +-+ +-+-+-+-+-+-+ +-+
╔════════════════════╗ ╔════════════════════╗
║ ║ ║ ║
║ Client Request ║ ║ Client Request ║
║ ║ ║ ║
╚════════════════════╝ ╚════════════════════╝
│▲
@newswim
newswim / example.feature
Created November 16, 2017 20:33
An example of an acceptance test using BDD and Gherkin syntax
Feature: Google Searching
As a web surfer, I want to search Google, so that I can learn new things.
Scenario: Simple Google search
Given a web browser is on the Google page
When the search phrase "panda" is entered
Then results for "panda" are shown
And the result page displays the text
"""
Scientific name: Ailuropoda melanoleuca
@newswim
newswim / antd_sc_example.js
Created August 4, 2017 22:42
Wrapping Ant Design components with Styled Components
import { Link } from 'react-router-dom'
import { Badge, Col, Menu } from 'antd'
const StyledBadge = styled(Badge)`
.ant-badge-count {
background-color: #7ECBBF;
color: white;
box-shadow: 0 0 0 1px #d9d9d9 inset;
}
`
@newswim
newswim / people.md
Last active July 23, 2017 02:55
Important peoples
@newswim
newswim / movies.md
Created July 22, 2017 23:42
Movies Unseen

War

  • Bridge of Spies (2015)
  • Dunkirk (2017)
@newswim
newswim / keybase.md
Created March 13, 2017 08:08
keybase.md

Keybase proof

I hereby claim:

  • I am newswim on github.
  • I am newswim (https://keybase.io/newswim) on keybase.
  • I have a public key whose fingerprint is 7866 2209 B982 FCA8 5D2D 77A1 1236 DEA9 5751 811B

To claim this, I am signing this object: