Skip to content

Instantly share code, notes, and snippets.

Avatar

Wojciech Morawski wojciechmorawski

View GitHub Profile
View dynamicFilters.ts
const longerThanThree = (t: string): boolean => t.length > 3;
const includesO = (t: string): boolean => t.includes(filterInput);
View data.ts
const users = [
'Jo',
'Jim',
'Jake',
'Johny',
]
View util.ts
const passItemThroughFilters = (item: any, cb: Function[]): boolean =>
(R.juxt(cb)(item)).every(R.identity);
@wojciechmorawski
wojciechmorawski / better.scss
Created Mar 29, 2018
structural-sass mixins in action
View better.scss
box(10% 15%);
pad(10px 15px n n);
mar(n 15px 3px n);
View normal.css
width: 10%;
padding-top: 10px
padding-right: 15px;
margin-bottom: 3px;
height: 15%;
margin-right: 15px;
@wojciechmorawski
wojciechmorawski / .gitignore
Last active Apr 5, 2017 — forked from octocat/.gitignore
Some common .gitignore configurations
View .gitignore
# Modules #
###########
/node_modules
/bower_components
# Compiled source #
###################
*.com
*.class
*.dll
View Default.sublime-keymap
[
{ "keys": ["ctrl+b"], "command": "reveal_in_side_bar_and_focus" },
]
View good-project.sublime-project
{
"folders":
[
//exclude all dirs
{
"path": "/Users/wo/Documents/blog/sublimeProject",
"folder_exclude_patterns": ["*"],
},
//import required dirs
{ "path": "/Users/wo/Documents/blog/sublimeProject/app" },
View bad-project.sublime-project
{
"folders":
[
{
"path": "/Users/wo/Documents/blog/sublimeProject",
"folder_exclude_patterns": ["node_modules"],
}
]
}