Compare commits

...

671 Commits

Author SHA1 Message Date
Rico Sta. Cruz af33da8de6
Update to github-pages@228 (#2067)
* Update to github-pages@228

* Add webrick
2023-10-11 21:39:23 +11:00
Sweidan Omár 3b16d4cf2c
Update vimscript.md (#2008)
Added a section on overwriting functions
2023-07-20 21:05:28 +10:00
Rico Sta. Cruz 9c2b6d725f
mako: Fix snippet and frontmatter (#1824) 2023-07-19 23:03:18 +10:00
Saikat Roy ba8d9189ae
docker system commands added (#1778)
* docker system commands added

* .cache directory removed

* .cache directory remove along with all unncessary files inside it

* .cache directory added to gitignore

* .cache in git ignore modified
2023-07-19 22:59:31 +10:00
Mi! 90dbde9990
Update fish-shell.md (#2022) 2023-07-19 22:59:12 +10:00
Jakob (Koby) Shimony a2d0c9279d
fix typo in tar.md (#2020)
* fix typo in tar.md

* Fix indentation
2023-07-19 22:58:25 +10:00
Brian Schonecker ca529c9d4f
Minor update to the Variables section to BASH cheat sheet. (#2016) 2023-06-23 20:57:11 +10:00
Tyler Caceres 76e9d99fb9
Update graphql.md (#2014) 2023-06-23 20:56:53 +10:00
shhh7612 726e5c04b2
Consistent Dates in js-date.md (#2006)
Made all the dates be consistent to each other.
2023-06-06 15:44:55 +10:00
Habetdin 62e5f5f5ea
bash: Recover broken links using Web Archive (#2004) 2023-06-02 20:01:51 +10:00
Rico Sta. Cruz 748c2a65b5
Update Google Analytics settings (#1970) 2023-03-14 19:23:51 +11:00
Rico Sta. Cruz 39a6c1a6ab
Content formatting update (part 5) (#1969) 2023-03-14 15:40:29 +11:00
Rico Sta. Cruz 05890aa33d
Update clip.md 2023-03-14 15:14:48 +11:00
Allison Browne db559f8898
Remove bad negative example from capybara sheet (#1798)
Removes the bad negative example and adds a new one
that still has bad performance. It use to be that `not_to` would wait
in a non-performant way:
https://www.cloudbees.com/blog/faster-rails-tests 
but now it it no longer waits: 
https://github.com/rubocop/rubocop-rspec/issues/378#issuecomment-463250177
2023-03-14 14:09:31 +11:00
Rico Sta. Cruz ea5f9100f2
Content formatting update (part 3) (#1967) 2023-03-14 12:52:21 +11:00
Rico Sta. Cruz c8d1d57d9f
Content formatting update (part 2) (#1966) 2023-03-13 23:08:02 +11:00
Rico Sta. Cruz 711ba22911
Content formatting update (#1965) 2023-03-13 23:02:33 +11:00
Emily Grace Seville ab9ab48bc5
Add Command Line Interface Pages (CLIP) page syntax examples (#1953)
* Add CLIP page syntax examples

* Update urls

* Fix errors
2023-03-13 22:38:48 +11:00
Emily Grace Seville cc9f2439cb
Refresh README: mention similar projects (#1961)
* Refresh README:

- mention similar projects

* Refresh README:

- change link text for TlDr
2023-03-13 22:37:39 +11:00
Rico Sta. Cruz 877f83fbed
Update _data/carbon.yml 2023-03-10 16:10:01 +11:00
Vivian De Smedt 9c1026d62f
Update vimscript.md (#1952)
Accessing key in dictionaries make use of `[` instead of `(`
2023-02-25 09:47:30 +11:00
Peter C. S. Scholtens 6afbde3c2d
Update find.md (#1783)
* Update find.md

Example to look very detailed in the past using a before and after condition.

* Update find.md

Co-authored-by: kang <1115610574@qq.com>

---------

Co-authored-by: kang <1115610574@qq.com>
2023-01-31 19:57:10 +11:00
Joshua Inho Jung 6b4c9ef35d
Add npm-version command to npm cheatsheet (#1553) 2023-01-31 19:56:35 +11:00
Dan Nissenbaum b91885ec71
Alternative form of long prefix/suffix removal (#1941)
The ${foo/%from} is an alternative form of the long suffix removal.
Likewise, he ${foo/#from} is an alternative form of the long prefix removal.

Test cases:

~~~bash
foo=gododa

# The following are the same: Long prefix removal.
# Result: r=a
r=${foo/#g*d}
r=${foo##g*d}
# (Compare to short prefix removal)
# Result: r=oda
r=${foo#g*d}

foo=agogod

# The following are the same: Long suffix removal.
# Result: r=a
r=${foo/%g*d}
r=${foo%%g*d}
# (Compare to short suffix removal)
# Result: r=ago
r=${foo%g*d}
~~~
2023-01-31 19:55:15 +11:00
TheDarkTron 5efbf15d4f
Added basic syntax for dictionaries and lists (#1947) 2023-01-31 19:54:45 +11:00
Kevin Yue cd02bb5a2c
Correct the `--include` option (#1948) 2023-01-31 19:53:46 +11:00
TheDarkTron 11cfb5c943
Added Search & Replace command (#1943) 2023-01-27 21:22:50 +11:00
TheDarkTron 04d0b8d9df
Removed :q! and :qa! (#1944) 2023-01-27 21:22:23 +11:00
not-a-patch 0d16abcb6a
Include have_current_path into expectations (#1938) 2023-01-18 22:46:59 +11:00
TheDarkTron 9b0e8f2203
Added nested list items, moved image embedding with reference to own block (#1939) 2023-01-18 22:44:08 +11:00
Andrei Curelaru 9cc370f984
Added 2 movement shortcuts (#1903)
* Added 2 movement shortcuts

In the Document section, "Move down/up by n lines"

* Update vim.md

Co-authored-by: Rico Sta. Cruz <rstacruz@users.noreply.github.com>
2023-01-04 20:45:26 +11:00
Jun Santilla c8aa8f2aac
Add import useState (#1906) 2023-01-04 20:44:57 +11:00
Genesis 66b6648e49
go-updates: Added variables and constants additions (#1931)
Co-authored-by: Zhenya Sikirzhitsky <zhenya_sikirzhitsky@epam.com>
2023-01-04 20:44:10 +11:00
lzrdblzzrd d7fc5ccf02
Update gnupg.md (#1932)
Fixed a typo: edit -> trust
2023-01-04 20:42:50 +11:00
Dimi Shahbaz 000441292e
tig: Fix traling newline in header (#1930)
There is no newline between the header and the table body, resulting in
a rendering issue at https://devhints.io/tig.

This PR adds a newline after the section header.
2023-01-02 21:28:24 +11:00
Dimi Shahbaz 58a1129c9b
Update tig cheatsheet (#1918)
* Update tig cheatsheet

The last update was in 2018, and some shortcuts were wrong, and many
were missing. This update adds the most pertinent shortcuts in the most
used tig views. This update matches tig version 2.4.1.

* Fix build

Co-authored-by: Rico Sta. Cruz <rstacruz@users.noreply.github.com>
2022-12-23 10:07:57 +11:00
Sonia Hamilton 83017d313e
Update bash.md (#1917)
* Update bash.md

declare variable as integer, then increment

* Update bash.md

Co-authored-by: Rico Sta. Cruz <rstacruz@users.noreply.github.com>
2022-12-16 08:05:23 +11:00
Xinpeng Wei 859d8e4f0b
fix: make the meaning of ^ and $ more precise (#1905)
* make the meaning of ^ and $ more clear

^ and $ work differently in multi-line pattern which are different from \A and \Z.

* Update regexp.md

Co-authored-by: Rico Sta. Cruz <rstacruz@users.noreply.github.com>
2022-12-02 20:16:09 +11:00
Lucendio 076c9d6b89
Fix merge flag name (#1623) 2022-11-01 14:30:02 +11:00
Antoine Mace 5522b615bc
fix(mysql): fix mysql backup typo (#1628) 2022-11-01 14:29:49 +11:00
Adam Leskis 71a0a6582a
update some links from http to https where supported (#1647) 2022-11-01 14:29:32 +11:00
Axel Ingadi b7f08ce1e6
Update subgrid value (#1797) 2022-11-01 14:29:15 +11:00
Dennis Thompson 5f5ce3eb83
Using latest rollup babel plugin (#1536) 2022-11-01 14:28:58 +11:00
Léni Marvaud 287295eae1
docker: Add depends_on long syntax (#1891)
Co-authored-by: Rico Sta. Cruz <rstacruz@users.noreply.github.com>
2022-11-01 14:23:53 +11:00
tripleee a5abcaea10
sed: fix "!p" example (#1898) 2022-11-01 14:19:16 +11:00
tripleee 1a0c86e002
grep: slashes do not need backslashes (#1899) 2022-11-01 14:13:54 +11:00
Vadym Kurachevskyi 655647d5d4
npm: add "npm rm" (#1839)
Co-authored-by: Rico Sta. Cruz <rstacruz@users.noreply.github.com>
2022-11-01 14:13:32 +11:00
Rico Sta. Cruz f1dfc086e5
Bump github-pages gem (v227) (#1901) 2022-11-01 14:11:33 +11:00
Rico Sta. Cruz 58232cc505
Bump runtime versions (Node.js v18) (#1900) 2022-11-01 14:08:12 +11:00
Léni Marvaud 0a6785c3f1
Add Healthcheck cheatsheet (#1892) 2022-11-01 13:26:22 +11:00
original-taste 09d5779281
added capturing group reference term (#1896) 2022-10-30 23:27:48 +11:00
tripleee 271e0b7c5d
bash.md: update with best practices (#1897) 2022-10-30 22:55:55 +11:00
JonghwanWon 6999e947cb
Update typescript.md (#1863) 2022-10-27 13:23:21 +11:00
Ellie Tam fac4d1e60b
Update kotlin.md (#1885) 2022-10-05 13:27:04 +11:00
whincwu 288baef931
Update mysql.md (#1879) 2022-09-14 13:08:20 +10:00
disksing d8fb4189fd
Improve indent (#1874) 2022-09-14 13:07:57 +10:00
Rico Sta. Cruz 3cd65f1974
Update environment versions 2022-09-14 13:02:26 +10:00
Saravanakumar J 5fb0ab2a68
Added few methods to JS Array (#1865) 2022-08-12 07:41:13 +10:00
Loïc Doubinine 68758d5b26
Add tar cheatsheet (#1870)
Co-authored-by: Zed <zed@riper.fr>
2022-08-12 07:40:12 +10:00
Nicolas Zagulajew e02473bcb5
add ${PIPESTATUS[c]} special var (#1800)
Co-authored-by: Rico Sta. Cruz <rstacruz@users.noreply.github.com>
2022-07-07 23:09:23 +10:00
throny d62209edf3
Added restart policy to other options (#1831)
* restart policy

* Update formatting

Co-authored-by: Rico Sta. Cruz <rstacruz@users.noreply.github.com>
2022-07-07 23:07:08 +10:00
Cayley Humphries 14068e6c4a
Add @async to JSDoc `Other keywords` section (#1819)
Async is so prevalent these days, felt like it was important to include in a cheatsheet.
2022-07-07 23:03:37 +10:00
tew 05b5e05d09
Added link to Introduction section (#1854)
Added Bash Hackers Wiki link to the Introduction section, as this is just as useful as the other two.
2022-07-07 22:57:06 +10:00
Zack Grannan 3a367c969c
Update git-log-format.md (#1853)
In date formatting: `rfc2822` should be `rfc2822`
2022-07-07 22:55:40 +10:00
Raigorx Hellscream 955bc18ead
fix react confusion Fragments don't require keys! (#1847)
Co-authored-by: Rico Sta. Cruz <rstacruz@users.noreply.github.com>
2022-06-13 10:25:10 +10:00
Konstantin Komelin 34e7fe3d3c
Removed unnecessary dot from the require-dev command (#1842) 2022-06-09 15:42:38 +10:00
OmegaSquad82 5b68e050e0
Add usage of strict shell (#1841)
Co-authored-by: Rico Sta. Cruz <rstacruz@users.noreply.github.com>
2022-06-09 12:11:24 +10:00
sontru b50655f6dc
Update top.md (#1837) 2022-06-03 18:10:34 +10:00
Ben Adrian Sarmiento 994a66d843
Fix back button showing up on home (#1835) 2022-05-21 10:04:40 +10:00
jaw3l b86ebd8968
Updated docker-compose.md (#1827) 2022-05-20 12:43:57 +10:00
Christophe Bliard e7d44f5f8c
Update rdoc.md (#1832)
Co-authored-by: Rico Sta. Cruz <rstacruz@users.noreply.github.com>
2022-05-19 22:58:57 +10:00
Julio Jordán f142dce3f3
Fix typo (#1834) 2022-05-19 22:57:35 +10:00
Rico Sta. Cruz 689e6a5e69
Update rdoc.md 2022-05-18 15:48:54 +10:00
Mariusz Michalowski 484fba606f
Added new resources (#1823) 2022-05-08 08:08:26 +10:00
Rico Sta. Cruz 8b42b199dd
Update mako.md 2022-05-06 15:33:50 +10:00
hydrargyrum 685ac707b0
jinja: fix typo in front-matter (#1825) 2022-05-06 15:33:36 +10:00
Mike Harrison 1c43d9feb4
Add Logical Or example to RSpec (#1554)
Co-authored-by: Rico Sta. Cruz <rstacruz@users.noreply.github.com>
2022-04-07 11:23:56 +10:00
akshay cd27a164b3
Update heroku.md (#1807)
Co-authored-by: Rico Sta. Cruz <rstacruz@users.noreply.github.com>
2022-04-06 20:36:55 +10:00
TimetravelerDD 2060d12b1d
Update top.md (#1604) 2022-04-04 22:14:34 +10:00
Dewald Swanepoel 5a312cd79e
Fixed bug in WaitGroup example (#1809) 2022-04-04 22:14:16 +10:00
whincwu 03a14640d7
update markdown (#1811)
Co-authored-by: Rico Sta. Cruz <rstacruz@users.noreply.github.com>
2022-04-04 22:13:46 +10:00
Rico Sta. Cruz 95713890ce
Upgrade to Node v16 and new GitHub action steps (#1814) 2022-03-29 22:11:50 +11:00
Rico Sta. Cruz 3cbc5b1bcd
Update stimulus-reflex.md 2022-03-16 09:18:01 +11:00
verbatino 5a23b79e78
Add tr command to bash cheatsheet (#1802)
Co-authored-by: Rico Sta. Cruz <rstacruz@users.noreply.github.com>
2022-03-13 22:08:22 +11:00
Luis Ezcurdia c84d4c1b97
RubyOnRails: Order ActiveRecord callbacks and add missing methods (#1789)
Co-authored-by: Rico Sta. Cruz <rstacruz@users.noreply.github.com>
2022-02-21 10:37:42 +11:00
Jose Pradenas Navarro 301d6b07f5
Added @use rule (#1765)
* Added @use rule

The new @use rule has been added, and a warning has been given regarding the phasing out of @import.

* Fixed md from ``` to `
2022-02-14 22:17:06 +11:00
Rico Sta. Cruz 8a3d8c3449
Update fish.md (formatted from #1758) (#1764)
Co-authored-by: EmilySeville7cfg <EmilySeville7cf@gmail.com>
2021-12-23 09:29:34 +11:00
Sami Harju f5125bd1ec
Update bash.md (#1760) 2021-12-22 16:21:16 +11:00
Peter C. S. Scholtens c1741f6923
Update bash.md (#1757) 2021-12-15 09:36:19 +11:00
techie2000 3e380ef4a2
Added iPhone 12/13, and some Galaxy details (#1729) 2021-12-13 10:25:53 +11:00
kyleVsteger e5fcc03e3e
Elixir: Add `with` Example (#1731) 2021-12-13 10:25:41 +11:00
Lloric Mayuga Garcia 21c62b3729
Add composer outdated --direct (#1734) 2021-12-13 10:24:51 +11:00
Emily Grace Seville 8b6f889761
Fish shell page update (#1743) 2021-12-13 10:23:40 +11:00
Tomislav Gracin 0dae9e9f4d
Wrong range for TINYINT (#1753) 2021-12-13 10:23:19 +11:00
Gary Wang 03a4487e86
Correct the emphasis markup (#1747)
According to https://orgmode.org/manual/Emphasis-and-Monospace.html,
it should be =verbatim= and ~code~
2021-11-19 18:31:32 +11:00
guillem 6e34105043
Adds column names for transaction code and transaction notes. Fixes typo 'expneses'. (#1735) 2021-11-03 22:07:48 +11:00
Christopher Hopper b28b6527f3
Add special parameter $_ to bash cheatsheet (#1736) 2021-11-03 22:06:31 +11:00
xianlaioy 3bf1169205
GROUPBY Space required (#1737) 2021-11-03 22:05:54 +11:00
Lloric Mayuga Garcia ff5e63c9db
Use global (#1733) 2021-10-29 11:30:11 +11:00
nformis e2680e5684
Update sublime-text.md (#1718)
Added shortcuts to moving and deleting lines
2021-10-21 14:31:36 +11:00
Dawit f6faef05d8
Fix a couple of typos (#1720) 2021-10-21 14:30:57 +11:00
Angel Tabares 8041e914f3
update validation and middleware reference links (#1727) 2021-10-21 14:29:12 +11:00
danny-laa 918aa48327
Create LICENSE (#1613) 2021-10-07 21:51:13 +11:00
Godfery 028c578bc1
Update jsdoc.md (#1677) 2021-09-27 11:37:40 +10:00
John Karahalis dcf31435ab
vimscript: Fix invalid code example (#1664) 2021-09-27 11:37:31 +10:00
hydrargyrum ec1223800f
Add mako cheatsheet (#1687)
* Add mako cheatsheet

* Update mako.md

Co-authored-by: Rico Sta. Cruz <rstacruz@users.noreply.github.com>
2021-09-27 11:29:02 +10:00
Michael 154c4af2d6
Add grep.md (#1223)
* create grep.md

* update grep.md

* Update grep.md

Co-authored-by: Rico Sta. Cruz <rstacruz@users.noreply.github.com>
2021-09-27 11:17:58 +10:00
hydrargyrum f0f4f05c92
Add Jinja cheatsheet (#1688)
Co-authored-by: Rico Sta. Cruz <rstacruz@users.noreply.github.com>
2021-09-27 11:14:30 +10:00
Antwan G ede185bf27
Update cron.md (#1701) 2021-09-27 11:12:30 +10:00
Dario Seidl 76ee217b88
Add --show-error to curl cheatsheet (#1713) 2021-09-27 11:12:12 +10:00
yeknomedoc 320c38959e
Expanded the cheat-sheet (#1694)
Expanded the cheat-sheet with:
- *, ** as expansion arguments for lists and dicts./
- A Tuple section
- 'mutable' and 'immutable' notation behind the Tuple and Lists header.
2021-09-18 23:46:50 +10:00
Ryan M 28c5f62de1
fix spelling issue in Python (#1683)
Fixing a spelling issue in the Python section.
2021-09-18 23:45:51 +10:00
Ehren Murdick 1bf9823bea
Add greek characters to vim-digraphs.md (#1710)
Co-authored-by: Rico Sta. Cruz <rstacruz@users.noreply.github.com>
2021-09-17 09:33:18 +10:00
Rico Sta. Cruz a2cec5f0f0
Empty out robots.txt (#1708) 2021-09-12 21:44:49 +10:00
Daniel Bergman 88f171cba2
Update atom.md (#1707) 2021-09-10 23:42:46 +10:00
Ilya Radchenko a6de3c7882
Update Ember syntax (#1704)
It has been a while since Ember has moved away from views to components :)
2021-09-10 13:34:37 +10:00
Adrian A e0379d3cb4
Update linux.md (#1681)
New command for newbies
2021-08-04 22:55:16 +10:00
Igor Grinchesku b3c91e197a
Update pass.md (#1662)
* Update pass.md

Add `bash` to the code block

* Update pass.md

Co-authored-by: Rico Sta. Cruz <rstacruz@users.noreply.github.com>
2021-06-20 23:04:30 +10:00
Dušan Stokić f7d4f61acf
Update markdown.md (#1657)
Added bold italic and Strikethrough to the emphases Heading
2021-06-03 22:29:44 +10:00
Rico Sta. Cruz ee4ed02fa5
Update rdoc.md 2021-05-20 11:57:24 +10:00
Cristiane TK 9762ba1f75
Update curl.md (#1649)
Add curl -F
2021-05-06 11:39:07 +10:00
Julio Maniratunga 85d55d6e13
Fix typo in rails.md (#1641) 2021-04-16 23:58:10 +10:00
Eero Ränik 7e5ccb9336
Fix a few examples that were using wrong CSS pseudo-classes (#1639) 2021-04-05 22:44:47 +10:00
Pedro Assunção c1de0e223c
Add Map.from_struct and Kernel.struct to maps section of Elixir cheatsheet (#1631)
* Update elixir.md

Added Map.from_struct and Kernel.struct to maps section.

* Update elixir.md

Co-authored-by: Rico Sta. Cruz <rstacruz@users.noreply.github.com>
2021-03-16 12:01:25 +11:00
codedhan 4d47cbd4e9
Update kotlin.md (#1629)
* Update kotlin.md

minor addition

* Update kotlin.md

Co-authored-by: Rico Sta. Cruz <rstacruz@users.noreply.github.com>
2021-03-12 16:22:20 +11:00
Emad Poursina 1acbf74350
Update cron.md (#1625)
* Update cron.md

Add Crons operators and some examples

* Formatting

* Formatting

Co-authored-by: Rico Sta. Cruz <rstacruz@users.noreply.github.com>
2021-03-11 23:44:35 +11:00
Mohammed Samir 02fed04a43
Update assignment section "=" (#1626)
I think these are more informative and precise examples for assignment expression.
2021-03-11 08:07:03 +11:00
Peter Avila 1e966a9ff1
Keep comments on combinatory arguments consistent. (#1622) 2021-02-19 16:57:24 +11:00
Matilde Bravo 8646bb2c89
Updated description for arguments section (#1620) 2021-02-18 17:56:44 +11:00
Gerrit Prößl 39f62fc3e9
Add Stringification to C Preprocessor (#1616) 2021-02-13 12:05:44 +11:00
Rico Sta. Cruz 3e12cb0b43
homebrew: fix cask install command 2021-02-11 10:40:13 +11:00
Julien Lamandé 6cf3493058
Add the mention of push --force-with-lease (#1611)
`--force-with-lease` is safer than `--force` as it checks that you are up-to-date with the remote branch.
2021-02-06 09:26:07 +11:00
Cecile Veneziani 9148ed237e
Fix view name for s key value (#1609)
`s` key value stands for Status instead of Stage view.
Stage view can be accessed with `c` key value
2021-02-03 11:25:01 +11:00
Peter Cole 9ec89aa788
Update homebrew.md (#1601)
The command for listing installed applications has changed.
`Error: Calling brew cask list is disabled! Use brew list [--cask] instead.`
2021-01-12 07:59:31 +11:00
Jonathan Baillais e2a59f4ff9
Update emmet.md (#1575) 2021-01-07 23:08:33 +11:00
Andrew 246693576d
added port param (#1559)
connect to custom port
2021-01-07 22:43:55 +11:00
Rafe Rosen c1f9f6f951
Create stimulus_reflex.md (#1576)
* Create stimulus_reflex.md

* Update and rename stimulus_reflex.md to stimulus-reflex.md

Co-authored-by: Rico Sta. Cruz <rstacruz@users.noreply.github.com>
2021-01-07 22:40:32 +11:00
Felix Gerschau 58ede74aec
httpie.md (#1569) 2021-01-07 22:38:06 +11:00
Vítězslav Ackermann Ferko 1729e1d2a7
Updated Property lookup to reflect new docs (#1577)
available here https://stylus-lang.com/docs/variables.html#property-lookup
2021-01-07 22:33:53 +11:00
Floffah be0341938b
Screen (#1585)
* Create screen.md

* better formatting

* period because ocd
2021-01-07 22:33:01 +11:00
Lena 8ea3efc08b
html-email: add role=presentation
Add role="presentation" on table tag to help screenreaders' restitution. It is not a data table but a layout table so we do not need to make a screenreader reads all the table structure.
2021-01-07 22:32:24 +11:00
Joyce Babu e1292194df
fix: typo (#1600) 2021-01-07 15:26:30 +11:00
Jan Keromnes e8f302b290
gitpod: Make Gitpod's automated dev setup automatically run Jekyll and Parcel (#1586) 2020-12-18 08:44:09 +11:00
Steven Conaway 1fbacbc9f8
Resolutions: combine iPhone 6/6S and 7/8/SE2 (#1594) 2020-12-17 08:42:46 +11:00
Przemysław Pietras f7f77ad479
go: add while loop example (#1583) 2020-12-03 19:37:40 +11:00
Rico Sta. Cruz b27d7d7f55
GitHub actions: update Ruby version for deployment 2020-11-26 10:45:56 +11:00
Rico Sta. Cruz 2822b14a57
GitHub actions: update Ruby version 2020-11-26 10:45:29 +11:00
Jonathan 616896d1d8
Update php.md (#1581)
Use type hinting.
Use https URLs.
Adhere to PHP-FIG PSR-12.
2020-11-26 10:44:23 +11:00
Jonathan fbd66d4838
Update rdoc.md (#1579)
Use https. Use IANA assigned example.com domain.
2020-11-25 06:28:05 +11:00
Anton Kochkov 9dd25959fa
tig: Add `tig -C` invocation tip (#1120)
Co-authored-by: Rico Sta. Cruz <rstacruz@users.noreply.github.com>
2020-08-03 22:36:55 +10:00
Rico Sta. Cruz 18b09de08b Remove badges 2020-08-03 22:35:03 +10:00
Anton Pozhidaev b407143e5e
xpath: Fix nesting predicates (#1158)
we need to use `.//` instead of `//` inside the predicate
2020-08-03 22:34:28 +10:00
Luong Vo 269c709c61
go: Add documentation for golang interfaces (#1332)
* Add documentation for golang interfaces

* Update go.md

Co-authored-by: Rico Sta. Cruz <rstacruz@users.noreply.github.com>
2020-08-03 22:33:43 +10:00
James Prescott c03aa5de51
Add example in moment.js cheatsheet (#1063)
Co-authored-by: Rico Sta. Cruz <rstacruz@users.noreply.github.com>
2020-08-03 22:33:31 +10:00
Andrii Radyk 76acff1923
fix indentation in go.md (#1076)
fix broken indentation and align indentation with other examples
2020-08-03 22:32:21 +10:00
DJCrashdummy 8747708136
bash: Correct mistakes at $RANDOM (#1147)
- using `=` just throws an error!
- `200` limits the result to 200 possible numbers starting with 0! so the maximum is 199.
- added `$` straight before `RANDOM` to be on the safe side.
2020-08-03 22:31:11 +10:00
Rico Sta. Cruz 692375e0fc jsdoc: Update domain name 2020-08-03 22:27:34 +10:00
Maxis Kao 91e7bfe13b
flow: Update doc links (#1070)
Co-authored-by: Maxis Kao <maxis.kao@shopee.com>
2020-08-03 22:21:29 +10:00
bastianbowe2000 c051140380
docker: Supply more helpful docker run -p description (#1064)
Co-authored-by: Rico Sta. Cruz <rstacruz@users.noreply.github.com>
2020-08-03 22:21:19 +10:00
Josua Schmid dec49c3969
Add Slim whitespacing section (#1385) 2020-08-03 22:20:05 +10:00
headdetect aef8d25a92
go: Update "statements in if" use case (#1199)
Co-authored-by: Rico Sta. Cruz <rstacruz@users.noreply.github.com>
2020-08-03 22:19:23 +10:00
Akshay Kadam (A2K) 9e0dbeddce
Added more header tags & ordered lists (#1514) 2020-08-03 22:09:26 +10:00
Sumit Pore f2066053f8
composer: Add examples of how to pass versions (#1516)
Co-authored-by: Rico Sta. Cruz <rstacruz@users.noreply.github.com>
2020-08-03 22:08:55 +10:00
Rico Sta. Cruz 7a85a431af Update Carbon URL 2020-08-02 01:57:04 +10:00
Josh Howe c719e2899d
[JSDoc] Link to the full list of keywords (#1506) 2020-08-02 00:08:38 +10:00
Dario Vladović 36337818d9
bluebird: `Promise.prototype.finally` is standard Promise API method (#1509) 2020-08-02 00:08:23 +10:00
Artemee 6a1378f310
Update vim.md (#1334)
Co-authored-by: Rico Sta. Cruz <rstacruz@users.noreply.github.com>
2020-07-13 00:13:50 +10:00
Rico Sta. Cruz cca13c9ca5 Update pubsrv URL 2020-07-13 00:11:51 +10:00
German Capuano 8a9907db52
fix accessibility and search form (#1501)
Co-authored-by: German Capuano <e@gcapu.com>
Co-authored-by: Rico Sta. Cruz <rstacruz@users.noreply.github.com>
2020-07-12 23:34:53 +10:00
Peter de Croos ed7ad56266
phoenix-migrations: changed precision to apply to decimal (#1375)
adding `precision: 10, scale: 2` will result in an exception on migration due to malformed sql. precision and scale apply to decimal
2020-07-09 01:38:20 +10:00
小秦 11849e8464
Remove extra closing braces (#1376) 2020-07-09 01:37:49 +10:00
Qwerty-Space 2a4cbe953f
vim: Fix two minor errors (#1370) 2020-07-09 01:37:24 +10:00
Toni Dezman 16588e2efe
Update to new Minitest namespace synatx (#1027) 2020-07-08 10:58:58 +10:00
lsb 5c4b57691f
Fix link to serialization document (#1013)
This is current as of 972f2e7b12
2020-07-08 10:58:39 +10:00
Rico Sta. Cruz 901f457dc2 Update image sizes 2020-07-08 10:57:33 +10:00
Rico Sta. Cruz 3cf86447a3 Styling: update gray colors 2020-07-07 00:23:12 +10:00
Rico Sta. Cruz e54458ad9c Remove some deprecated sheets 2020-07-06 01:54:07 +10:00
Rico Sta. Cruz 68af8e66f6 Delete mongodb.md 2020-07-06 01:50:16 +10:00
Rico Sta. Cruz afc25b5e1f
Update styling (#1498) 2020-07-06 01:35:26 +10:00
Rico Sta. Cruz c792f1b418
Add introduction sections (#1497) 2020-07-06 00:38:31 +10:00
Rico Sta. Cruz ba699dd29e Cleanup: fix React formatting 2020-07-05 23:16:32 +10:00
Rico Sta. Cruz aff701a600
Cleanup: formatting update (2020-07-05) (#1496) 2020-07-05 23:13:06 +10:00
Rico Sta. Cruz 6b43bf97da Cleanup: update timestamps 2020-07-05 21:11:36 +10:00
James Allen 18ebcc9b2e
react: Remove extra ending bracket (#972) 2020-07-05 21:07:19 +10:00
Rico Sta. Cruz 45160e4cc7
Tech: fix 301 redirects (#1495) 2020-07-05 21:05:57 +10:00
SZ-CHENG HUANG 04f28a1d76
Flow: Fix the example for width subtyping (#558) 2020-07-05 21:05:07 +10:00
hyww a54b580e01
bash: Fix substring expansion with negative offset (#947)
Co-authored-by: Rico Sta. Cruz <rstacruz@users.noreply.github.com>
2020-07-05 21:04:28 +10:00
Jakob Schöttl aff27988e0
vimscript: Function stridx return value is an index (#988)
* Bugfix: function return value is an index

* White-space change

* Bugfix and clarification
2020-07-05 21:03:07 +10:00
Øyvind Eikeland 42950dfac7
sed: Added command for excluding lines while printing (#984)
Co-authored-by: Rico Sta. Cruz <rstacruz@users.noreply.github.com>
2020-07-05 21:02:32 +10:00
Chris Hayes 959b471fb6
lua: Fix elseif conditional typo (#1157)
`elsif` should be `elseif`
2020-07-05 21:00:15 +10:00
Bryan Dady 31b8a9af45
Add CREATE USER (#1381)
Co-authored-by: Rico Sta. Cruz <rstacruz@users.noreply.github.com>
2020-07-05 20:59:47 +10:00
Michael Kreusel 21306a7bfe
httpie: Add raw JSON example (#1477)
Co-authored-by: Rico Sta. Cruz <rstacruz@users.noreply.github.com>
2020-07-05 20:58:21 +10:00
fREW Schmidt d20fddb40a
vim: Fix spelling (#1000) 2020-07-05 20:57:28 +10:00
Hadrien Lepoutre a0849391d2
sass: Fix typo (#1066) 2020-07-05 20:57:14 +10:00
Mike Hatch e3cd185414
Formatting: capitalized first letter on some headings (#1044)
Capitalized first letter on "Keywords," "Description," and "Intro" to be more consistent with document's current style.
2020-07-05 20:56:59 +10:00
Rico Sta. Cruz bec53c5405 Update CSS to increase contrast 2020-07-05 16:15:00 +10:00
Rico Sta. Cruz 360bb87287 Cleanup: update timestamps of files 2020-07-04 23:33:09 +10:00
Rico Sta. Cruz d4e3421ac6 Format: update some table formatting 2020-07-04 23:29:16 +10:00
Rico Sta. Cruz 02c3e97f4a
Update URL for placements (#1492) 2020-07-04 00:12:32 +10:00
Rico Sta. Cruz ee072214f7
Style updates (#1491) 2020-07-03 23:21:02 +10:00
Pavitra Behre 865ad2cd98
emmet: Fixed a typo in Emmet Cheatsheet (#1479)
Fixed a typo in emmet
section>p gives <section><p>...</p></section>
Earlier it was <section><pt>....</p></section>
2020-07-03 22:49:04 +10:00
Ye-Chan Kang 32fa7a6898
sass: Update sass.md (#1481) 2020-07-03 22:48:49 +10:00
techie2000 05e2dabc76
Update resolutions.md (#1482)
Added in newer iPhone models and some Galaxy models either side of what was already published.
2020-07-03 22:48:22 +10:00
Chl ac3891cae8
vim: Added '%' as a quick delimiter navigator (#1483)
Works pour `{}`, `()`, `[]` and also `/* */`, `#ifdef` and other usual delimiters
in programming languages. See ':help %'.
2020-07-03 22:48:11 +10:00
Rico Sta. Cruz 969967363f
Formatting: update formatting of 20+ files (#1490) 2020-07-03 22:47:47 +10:00
Zeebrommer 87ed01b739
Bash: add `else` example (#1484)
I always forget if `else` is to be followed by a `;` or not. Add it to the conditionals chapter where I would expect it.
2020-07-03 00:45:04 +10:00
Rico Sta. Cruz b82849e840
Sponsor update (#1489) 2020-07-03 00:42:02 +10:00
Rico Sta. Cruz fcc6196aa4 Cleanup: remove extra spaces before {:...} tags 2020-07-02 10:02:38 +10:00
Josh 58d1602609
simple typo correction (#1486) 2020-07-01 22:09:19 +10:00
Kushal Arya f3cef3c398
vim: Added key for 'A' (#1018) 2020-06-24 00:27:25 +10:00
Gautam Naik b4e978f074
vim: Added system clipboard copy-paste shortcuts (#522)
Co-authored-by: Rico Sta. Cruz <rstacruz@users.noreply.github.com>
2020-06-24 00:26:41 +10:00
mr-bolle 41a2964704
markdown: add checkbox (#971)
Co-authored-by: Rico Sta. Cruz <rstacruz@users.noreply.github.com>
2020-06-24 00:25:39 +10:00
burhanudin hakim 26e0f381fb
factory_bot: Update static attributes using dynamic (#772)
Co-authored-by: Rico Sta. Cruz <rstacruz@users.noreply.github.com>
2020-06-24 00:24:02 +10:00
Petr Heinz 3a918a1619
bash: expanded working with arrays (#534) 2020-06-24 00:23:07 +10:00
SombreroElGringo 6b7e8ed460
[Lodash] Fix padding (#813) 2020-06-24 00:18:03 +10:00
Alessio a595901d99
Fix typo (#1476) 2020-06-24 00:15:39 +10:00
Rico Sta. Cruz 25070809c1 Deploy to devhints-mirror 2020-06-23 09:34:06 +10:00
Rico Sta. Cruz 1fa97113d5
Use Netlify redirects (#1474) 2020-06-23 01:55:02 +10:00
Rico Sta. Cruz 5d514222d6 Dev: fix jekyll warnings; fade: make it more subtle 2020-06-23 01:10:54 +10:00
Rico Sta. Cruz b3cab9aa28 Remove minifier again, it breaks some spaces 2020-06-23 00:56:21 +10:00
Rico Sta. Cruz 6076941a33 Remove CNAME in master 2020-06-23 00:55:29 +10:00
Rico Sta. Cruz 51924e42bd Try to deploy with gh-pages? 2020-06-23 00:42:19 +10:00
Rico Sta. Cruz f534ec6c72
Reenable minifier, disable Travis (#1473) 2020-06-23 00:38:08 +10:00
Rico Sta. Cruz c27d9bf443 Netlify: add CloudFlare purge plugin 2020-06-23 00:13:26 +10:00
Rico Sta. Cruz 46787089cd
Tech improvement: Fix CSS, and enable minification (#1472) 2020-06-22 23:47:07 +10:00
Rico Sta. Cruz 81aaaf064a Remove HTML minification 2020-06-22 22:14:35 +10:00
Rico Sta. Cruz b1ff74a82f Simplify CSS 2020-06-22 22:14:35 +10:00
Rico Sta. Cruz 6722b20d19 Add postcss and cssnano 2020-06-22 22:14:35 +10:00
Rico Sta. Cruz 40e1c30405 Remove built files 2020-06-22 22:14:35 +10:00
Rico Sta. Cruz 048697b3d3
Merge pull request #1464 from rstacruz/feature-parcel 2020-06-22 20:44:30 +10:00
Rico Sta. Cruz b0a436587f
Merge pull request #1111 from mantrax314/mantrax314-patch-1
Fix Typo in Golang cheatsheet # Methods -> Receivers
2020-06-21 14:01:35 +10:00
Rico Sta. Cruz 4dbdd73c52
Merge pull request #1421 from jakeherp/patch-1 2020-06-17 23:24:06 +10:00
Rico Sta. Cruz 75b102fca5
Update jest.md 2020-06-17 23:23:34 +10:00
Rico Sta. Cruz 214a4ed82e
Merge pull request #1462 from kozhemyak/patch/add-bash-lastindex
Add a way to get the last element
2020-06-17 23:22:27 +10:00
Rico Sta. Cruz 02bbc11dae Fix TravisCI script 2020-06-15 00:11:02 +10:00
Rico Sta. Cruz ee1bbb06a3 Netlify: enable HTML minification 2020-06-15 00:11:02 +10:00
Rico Sta. Cruz d8df859e5c Update Docker setup 2020-06-15 00:11:02 +10:00
Rico Sta. Cruz 57ed177028
Merge pull request #1382 from knw257/patch-1
Added [:print:] class to character classes
2020-06-15 00:07:17 +10:00
Rico Sta. Cruz 4c38e4ae49
Merge pull request #1425 from mehran-prs/patch-1 2020-06-15 00:06:45 +10:00
Rico Sta. Cruz 85cf4ec38f
Merge pull request #1374 from Mazyod/patch-2
Add --cvs-exclude flag docs
2020-06-14 23:56:26 +10:00
Rico Sta. Cruz ae18baa7e9
Merge pull request #1383 from zhumengu/master 2020-06-14 23:55:27 +10:00
Rico Sta. Cruz d5683a9ddf
Update bash.md 2020-06-14 23:54:47 +10:00
Rico Sta. Cruz 577bc0dae1
Merge pull request #1389 from T04435/patch-2
Update html-meta.md
2020-06-14 23:53:15 +10:00
Rico Sta. Cruz 66d30a519c
Merge pull request #1380 from typebrook/patch-1
Update curl.md
2020-06-14 23:36:24 +10:00
Rico Sta. Cruz 0a91b64a1a
Merge pull request #1422 from macvinpinto/patch-1
Update python.md
2020-06-14 23:35:57 +10:00
Rico Sta. Cruz fef9dffd21
Merge pull request #1417 from m-thomson/patch-1 2020-06-14 23:35:25 +10:00
Rico Sta. Cruz d3203a354c Add Netlify configuration 2020-06-14 23:14:43 +10:00
Rico Sta. Cruz a20fdfe4e6 Update the critical path with Parcel too 2020-06-14 23:09:47 +10:00
Rico Sta. Cruz 9ed567ec08 Replace Webpack (_js) with Parcel (_parcel) 2020-06-14 22:21:27 +10:00
Rico Sta. Cruz 42bac34c80
Merge pull request #1438 from deepaknayan/patch-1
Delete current buffer
2020-06-14 10:48:42 +10:00
Rico Sta. Cruz 271d37ec33
Merge pull request #1453 from trickeydan/patch-1
Use example.com instead of service.com
2020-06-14 10:47:25 +10:00
Rico Sta. Cruz a8475e711e
Merge pull request #1446 from Fasani/patch-1
Small improvement
2020-06-14 10:46:44 +10:00
Rico Sta. Cruz 17ac9a671b
Merge pull request #1390 from zavre-c/patch-1 2020-06-14 10:45:29 +10:00
Rico Sta. Cruz aafab35c90 Update github-pages gemm 2020-06-13 22:57:33 +10:00
Rico Sta. Cruz 60f66d6750 Remove Bundler dependency lock 2020-06-13 22:14:23 +10:00
Rico Sta. Cruz 69b75e6d26
Merge pull request #1391 from tomatikrad/patch-1 2020-06-13 10:20:28 +10:00
Rico Sta. Cruz d2cbc97ddf
Update css-flexbox.md 2020-06-13 10:20:17 +10:00
Rico Sta. Cruz 517343fcd9
Update go.md 2020-06-13 10:17:21 +10:00
Rico Sta. Cruz 242c5bccbf
Merge pull request #1397 from rajinder-yadav/patch-1 2020-06-13 10:16:20 +10:00
Rico Sta. Cruz d0381c2254
Update bash.md 2020-06-13 10:16:14 +10:00
Rico Sta. Cruz a78a39538b
Merge pull request #1402 from TaylorPzreal/patch-1 2020-06-13 10:15:22 +10:00
Rico Sta. Cruz aa8c2632d7
Update bash.md 2020-06-13 10:15:03 +10:00
Rico Sta. Cruz 761fe6498e
Merge pull request #1408 from notapatch/patch-1 2020-06-13 10:13:03 +10:00
Rico Sta. Cruz e961eb3a50
Update capybara.md 2020-06-13 10:12:49 +10:00
Rico Sta. Cruz 67850f71bc
Merge pull request #1410 from agoose77/master 2020-06-13 10:11:58 +10:00
Rico Sta. Cruz bf22b55008
Update bash.md 2020-06-13 10:11:51 +10:00
Rico Sta. Cruz 9a73127177
Update lodash.md 2020-06-13 10:09:54 +10:00
Rico Sta. Cruz 147fd9351e
Update makefile.md 2020-06-13 10:09:28 +10:00
Rico Sta. Cruz cd03070b11
Merge pull request #1431 from MaxVerevkin/master
fix words section
2020-06-13 10:09:16 +10:00
Rico Sta. Cruz d42235b255
Merge pull request #1437 from rb-x/rb-x-patch-python 2020-06-13 10:09:09 +10:00
Rico Sta. Cruz 0114a74db2
Update python.md 2020-06-13 10:09:01 +10:00
Rico Sta. Cruz 2a51cfe548
Merge pull request #1440 from dougbeal/patch-1
Add %tag=value query
2020-06-13 10:08:23 +10:00
Rico Sta. Cruz bfb2305e3b
Merge pull request #1443 from isaax2/master
Add brew upgrade to Global commands
2020-06-13 10:08:15 +10:00
Rico Sta. Cruz 1a76636dd5
Merge pull request #1451 from mahcloud/patch-1
Adding reference to whereNotIn
2020-06-13 10:07:54 +10:00
Rico Sta. Cruz c46a9c2c6d
Merge pull request #1458 from rendyuwu/contribution
fix command First-time setup docker
2020-06-13 10:07:40 +10:00
Nikolay Kozhemyak cd02419737 Add a way to get the last element 2020-06-12 21:10:54 +06:00
Rico Sta. Cruz 6b2cc8de1e
Merge pull request #1427 from radeesh/patch-1
Added pm2 save
2020-06-12 10:01:01 +10:00
Rico Sta. Cruz 6b4d445701
Merge pull request #1454 from onedebos/patch-1 2020-06-12 09:59:10 +10:00
Rico Sta. Cruz d56fcc75bf
Update formatting 2020-06-12 09:59:02 +10:00
Rico Sta. Cruz 1ba32f1831
Merge pull request #1460 from tywmick/badges-duplicate-line
Remove duplicate MIT license line from Badges
2020-06-12 09:56:21 +10:00
Ty Mick e7f7e28b5a Remove duplicate MIT license line from Badges 2020-06-10 16:34:46 -04:00
Rendy Wijaya ec4b0cf9bd
fix command First-time setup docker 2020-06-09 13:11:18 +07:00
Adebola 9254692750
Update jest.md
Update jest.md to include optional flags.
2020-06-08 12:09:27 +01:00
Dan Trickey 20e0fac85b
Use example.com instead of service.com
service.com is a real domain name, and could potentially have a real API on api.service.com

example.com is specifically reserved by IANA and thus will never have an API on it. It is designated to be used in scenarios like this. See RFC 2606 for more information.
2020-06-06 16:50:40 +01:00
Michael Hoffert ee079ad300
Adding reference to whereNotIn 2020-06-03 07:51:11 -06:00
Michael Fasani 9827f09f5c
Small improvement
Rearranged so that `Immutable` is above `Mutative` in both examples.
2020-05-28 23:16:42 +02:00
Isaac Cerda ef43970680
Add brew upgrade to Global commands
brew upgrade to Upgrade all packages
2020-05-27 16:53:00 -05:00
Douglas Beal 59d47b33a3
Add %tag=value query 2020-05-23 20:18:17 -07:00
Deepak Nayan 734e13c744
Delete current buffer
File will remain intact.
2020-05-22 02:57:26 +05:30
Riadh Bch 574355b794
f string fix 2020-05-16 00:48:21 +02:00
Riadh Bch efd0a4590a
Correction of small typing errors
There was some minor mistakes  in the file manipulation section, so I just rectified them.
2020-05-16 00:29:05 +02:00
MaxVerevkin 3973e58287 fix words section 2020-05-13 08:50:22 +03:00
Radeesh 9f6ea99c19
Added pm2 save 2020-05-08 09:39:43 -04:00
Mehran Poursadeghi d48d956a5a
Update makefile.md 2020-05-08 14:27:15 +04:30
Macvin 799ca9ef39
Update python.md 2020-05-06 11:08:18 +05:30
Jacob Herper 6da706b706
Added inline snapshots to Jest 2020-05-05 10:25:10 +01:00
Mark Thomson abf62e4868
findRight is actually findLast
Not sure if this was renamed at some point but there's no "findRight" in lodash, just findLast.

https://lodash.com/docs/4.17.15#findLast
2020-05-01 16:10:22 -07:00
Angus Hollands 0361fa173b
Update bash.md 2020-04-20 11:21:31 +01:00
Angus Hollands 7a2322761a Fix nullity checks for parameter expansion 2020-04-20 10:19:52 +00:00
not-a-patch 912afcd792
Update capybara.md
Capybara renamed click to click_on

From their history: 

Version 0.4.0.rc
Session#click has been renamed click_link_or_button and the old click has been deprecated

Version 0.4.1
New click_on alias for click_link_or_button, shorter yet unambiguous. [Jonas Nicklas]
2020-04-17 09:57:01 +01:00
TaylorPzreal 42df935e43
Update bash.md
Substring from the right should include __parentheses__
2020-04-07 08:45:15 +08:00
Rico Sta. Cruz cb4e03077f
Merge pull request #1400 from srph/patch-1
React Hooks: Add deps to useEffect
2020-04-04 10:19:15 +11:00
Kier Borromeo a652d427eb
Add deps to useEffect 2020-04-04 04:54:30 +08:00
Rajinder Yadav 3d839093e9
Correct conditions, removed superfluous brackets 2020-04-01 07:44:50 -04:00
Dima 455decd2c4
css-flexbox.md
added more container alignment options
2020-03-24 16:47:45 +02:00
zavre-c a6fb6f3a26
Added new() to get pointer
Added function implementation of new() for getting a pointer.
2020-03-24 18:31:35 +05:30
Fidel Torres 47356a2e6a
Update html-meta.md
Updated broken link for twitter cards docs
2020-03-20 04:35:03 +11:00
zhumengu ef9f00aa5c parent directory example 2020-03-14 15:08:20 +08:00
knw257 69ebb03cca
Added [:print:] class to character classes 2020-03-10 11:28:27 -04:00
Hsieh Chin Fan 81eb884b74
Update curl.md
Add example for how to check if a remote resource is available
2020-03-09 11:25:51 +08:00
Maz Jaleel 3f2d48a756
Add --cvs-exclude flag docs 2020-03-05 14:03:52 +03:00
Rico Sta. Cruz 447de944e4
Merge pull request #1176 from saulmestanza/patch-1
Update phoenix-migrations.md
2020-02-23 20:38:01 +11:00
Rico Sta. Cruz 0c7e52aafc
Merge pull request #1366 from tommic/patch-1
Adding command to update autoloader files
2020-02-23 20:37:45 +11:00
Rico Sta. Cruz a2019a2aa1
Update composer.md 2020-02-23 20:37:33 +11:00
Rico Sta. Cruz 9c8df067e5
Merge pull request #1316 from johnramsden/master
Fix: Use room and remove user from gitter room link
2020-02-23 20:35:45 +11:00
Rico Sta. Cruz ded62323ec
Merge pull request #1363 from aarti/patch-1
[YAML]: Add Reference content
2020-02-23 20:35:22 +11:00
Rico Sta. Cruz 132babca6e
Update yaml.md 2020-02-23 20:34:51 +11:00
Rico Sta. Cruz ebd538f1f6
Merge pull request #1365 from ivorscott/patch-1
Display -i, --include
2020-02-23 20:33:52 +11:00
Rico Sta. Cruz ecf5282f1f
Merge pull request #1367 from a-b/patch-1
Add bash $_ last argument of the previous command
2020-02-23 20:32:59 +11:00
Rico Sta. Cruz 1caa08f0ca
Merge pull request #1368 from Qwerty-Space/patch-2
Command to convert newlines from Windows to Unix
2020-02-23 20:32:46 +11:00
Rico Sta. Cruz d8b2a29afa
Update vim.md 2020-02-23 20:32:37 +11:00
Qwerty-Space 9ba6e49d36
Command to convert newlines from Windows to Unix 2020-02-21 23:10:35 +00:00
Alexander Berezovsky d0da7addd5
Add bash $_ last argument of the previous command 2020-02-20 12:11:57 -08:00
tommic 187fc495d3
Adding command to update autoloader files 2020-02-20 18:20:47 +01:00
Ivor Scott 4570737d5c
Display -i, --include
Include the HTTP-header in the output
2020-02-18 19:25:39 +01:00
aarti cf52d5d7e3
Add Reference content 2020-02-17 15:13:10 -08:00
Rico Sta. Cruz b5cd93a09f
Merge pull request #1163 from ZhdanovMV/patch-1
Update phoenix-migrations.md
2020-02-13 22:02:14 +11:00
Rico Sta. Cruz 2b6aeb322c
Merge pull request #1164 from A1RO/A1RO-patch-1
Swap "Previous/next end of word" shortcuts in vim.md
2020-02-13 22:01:56 +11:00
Rico Sta. Cruz 925abb960b
Merge pull request #1256 from glazec/patch-1
fix docker bug when building development environment
2020-02-13 22:01:36 +11:00
Rico Sta. Cruz 9490cf3adf
Merge pull request #1319 from filipve1994/patch-1
Update git-branch.md
2020-02-13 21:52:45 +11:00
Rico Sta. Cruz d65e607ae2
Merge pull request #1318 from sebrink/master
Fixed tmux attach.
2020-02-13 21:52:29 +11:00
Rico Sta. Cruz 2b20b8549a
Merge pull request #1339 from r3s/patch-2
Update go.md
2020-02-13 21:52:15 +11:00
Rico Sta. Cruz ebe8a85148
Merge pull request #1340 from Gennnji/patch-1
Update rollup.md
2020-02-13 21:50:28 +11:00
Rico Sta. Cruz 5342ff47df
Merge pull request #1349 from Ethereum77/patch-2
Update emmet.md
2020-02-13 21:50:07 +11:00
Rico Sta. Cruz 0db542841d
Merge pull request #1356 from JapMul/patch-1
Update moment.md
2020-02-13 21:49:47 +11:00
Rico Sta. Cruz 25ca53525c
Merge pull request #1357 from pixmin/master
Add tmux shortcut to show pane numbers
2020-02-13 21:49:34 +11:00
Rico Sta. Cruz f58b5070c0
Merge pull request #1358 from mercedesb/patch-1
Updated accessing a single prop's value
2020-02-13 21:49:25 +11:00
Mercedes d55d4f9fc8
Updated accessing a single prop's value
Instead of `.props('name')`, use `.prop('name')` to access a single prop's value for testing
2020-02-12 13:06:28 -06:00
Gaëtan PRIOUR 2d70df1fbb Add tmux shortcut to show pane numbers 2020-02-12 15:20:02 +01:00
Jap a0e23ed4f4
Update moment.md
Separated the format function to avoid confusion. Old syntax made it look like these functions could be chained.
2020-02-12 10:56:48 +01:00
Ethereum77 a4e0b6c7df Update emmet.md 2020-02-08 10:38:24 +03:00
Genji e5fbc750ff
Update rollup.md 2020-01-29 16:43:22 +03:00
Rahul 0e9b7337ab
Update go.md
Added the usage of WaitGroup in go
2020-01-29 18:09:27 +05:30
Rico Sta. Cruz 48a96fd920
add uninstall command (#1322)
add uninstall command
2020-01-28 11:04:28 +11:00
Rico Sta. Cruz ffdf83a45f
Update knex.md with seed docs. (#1328)
Update knex.md with seed docs.
2020-01-28 11:04:14 +11:00
Rico Sta. Cruz 30ca1950aa
bash: fix line reading example (#1336)
bash: fix line reading example
2020-01-28 11:02:45 +11:00
Matthew Pfeiffer 0b8a65c575 bash: fix line reading example
`< file.txt | cmd` only works in zsh, not bash (as of bash 5.0.11).
2020-01-24 21:07:10 -05:00
Rico Sta. Cruz 4704baedfa
Merge pull request #1323 from erok415/patch-2
Update git-branch.md
2020-01-20 16:16:15 +11:00
Rico Sta. Cruz 85ed8e15aa
Update git-branch.md 2020-01-20 16:15:41 +11:00
Rico Sta. Cruz b81b7b73c9
Update git-branch.md 2020-01-20 16:15:24 +11:00
Rico Sta. Cruz ada2e95afb
escape characters for string (#1324)
escape characters for string
2020-01-20 16:14:26 +11:00
Rico Sta. Cruz 08773a877a
Update git-branch.md (#1329)
Update git-branch.md
2020-01-20 16:14:10 +11:00
Rico Sta. Cruz ef74b689ef
Update git-branch.md 2020-01-20 16:13:57 +11:00
Rahul fd9ccf25d5
Update git-branch.md
To delete a branch already pushed and merged with remote, use `git branch -d $branchname`
2020-01-17 12:51:18 +05:30
Vicente Canales 63bde1e309 add knex seed docs 2020-01-13 18:43:14 -03:00
Nicholas Chen e815651821
escape characters for string
referenced string documentation here: https://docs.python.org/3.9/tutorial/introduction.html
2020-01-10 19:14:13 -05:00
Erik Cochran eb2a0eabe1
Update git-branch.md 2020-01-09 18:45:50 -08:00
Nicholas Chen caa7a045a9
add uninstall command 2020-01-09 14:41:11 -05:00
Filip Vanden Eynde f2844aee9f
Update git-branch.md
to delete a remote branch, you have to add the parameter --delete

https://www.educative.io/edpresso/how-to-delete-remote-branches-in-git
2020-01-07 10:55:21 +01:00
sebrink 129d586ef6
Fixed tmux attach.
Was originally -s instead of -t, so it would not work.
2020-01-06 09:35:47 -05:00
John Ramsden 60a2de77fb
Use room and remove user from gitter room link 2020-01-05 17:29:13 -08:00
Rico Sta. Cruz bc51528f1a
Merge pull request #1315 from yrammos/patch-1
Add schema for USE command.
2020-01-04 14:13:08 +11:00
Rico Sta. Cruz b1155732aa
Merge pull request #1314 from nickycutesc/patch-9
brew search command
2020-01-04 14:12:53 +11:00
yrammos 86918eb0c1
Add schema for USE command. 2020-01-03 10:50:12 +02:00
Nicholas Chen d472f10861
brew search command
add brew search command
2020-01-01 17:46:36 -05:00
Rico Sta. Cruz 71a59adbca
Merge pull request #1213 from mhienle/top-cheatsheet
Issue #767: Add top cheatsheet
2020-01-01 10:09:29 +11:00
Rico Sta. Cruz e9ca32b14a
Update top.md 2020-01-01 10:09:22 +11:00
Rico Sta. Cruz afda4c70dc
Update top.md 2020-01-01 10:08:59 +11:00
Rico Sta. Cruz 005789bb91
Merge pull request #1185 from Richard70NL/patch-1
OSX spotlight and system utils changes
2020-01-01 10:07:17 +11:00
Rico Sta. Cruz e8acd9672d
Merge pull request #1224 from izzergh/feature/update-regexp
Add Lookahead and Lookbehind to regexp.md
2020-01-01 10:06:57 +11:00
Rico Sta. Cruz 46dd46edf1
Merge branch 'master' into feature/update-regexp 2020-01-01 10:06:49 +11:00
Rico Sta. Cruz b3a27632df
Update regexp.md 2020-01-01 10:06:17 +11:00
Rico Sta. Cruz fe34c4d738
Merge pull request #1235 from eheydrick/ec2
Add EC2 instance termination command
2020-01-01 10:05:44 +11:00
Rico Sta. Cruz 2906fc9c6e
Merge pull request #1238 from btandersen383/patch-1
Fix if regex match
2020-01-01 10:05:33 +11:00
Rico Sta. Cruz 7a8e661857
Merge pull request #1247 from thakkaryash94/patch-4
Added named volume in docker-compose.md
2020-01-01 10:03:05 +11:00
Rico Sta. Cruz aa4bca1180
Merge pull request #1243 from thakkaryash94/patch-docker
Add argument --build-args in docker
2020-01-01 10:02:55 +11:00
Rico Sta. Cruz b497f41d18
Merge pull request #1225 from Vanguard90/patch-2
Update obs. Enzyme methods 'getNode' & 'getNodes'
2020-01-01 10:00:08 +11:00
Rico Sta. Cruz fbca147904
Update enzyme.md 2020-01-01 09:59:57 +11:00
Rico Sta. Cruz 6d9358a908
Merge pull request #1065 from bastianbowe2000/patch-2
Add docker logs instructions
2020-01-01 09:58:52 +11:00
Rico Sta. Cruz 0bc396c632
Merge pull request #986 from ilhan-mstf/feature/linux-disk-size
Adds disk space and disk usage commands to linux.
2020-01-01 09:58:33 +11:00
Rico Sta. Cruz caa337d5ea
Update linux.md 2020-01-01 09:58:25 +11:00
Rico Sta. Cruz 19d2158efb
Merge pull request #1305 from bourhaouta/patch-2
Update vue.md
2020-01-01 09:55:58 +11:00
Rico Sta. Cruz c3a4bd411b
Merge pull request #1307 from NoobTW/master
Add some common tmux commands for window
2020-01-01 09:55:19 +11:00
Rico Sta. Cruz d5b83196c3
Merge pull request #1311 from SyberToto/patch-1
Fix typo of Hyphenated ranges
2020-01-01 09:55:06 +11:00
SyberToto 039979de41
Fix typo of Hyphenated ranges
Fix typo of Hyphenated ranges
2019-12-31 13:12:00 -05:00
Noob Tsai 5e41424a3e
add some common tmux commands 2019-12-29 11:34:23 +08:00
Rico Sta. Cruz a3bc51825a
makefile: Add more links (#1306) 2019-12-28 11:27:37 +11:00
bourhaouta cbac026d47 Uncomment updated 2019-12-26 15:49:01 +01:00
bourhaouta 2211c7f3ec Update vue.md 2019-12-26 15:44:39 +01:00
Rico Sta. Cruz b74da3ccd0
Merge pull request #1252 from kolapsys/master
Update 'Anchors' in regexp basic cheatsheets
2019-12-25 19:10:53 +11:00
Rico Sta. Cruz 1d4e572260
Merge branch 'master' into master 2019-12-25 19:10:46 +11:00
Rico Sta. Cruz 04b1d6212e
Merge pull request #1303 from rstacruz/chore-add-slack-notifications
Add Slack notifications to Travis config
2019-12-25 19:09:31 +11:00
Rico Sta. Cruz 8f73df1d15
Merge pull request #1302 from nickycutesc/patch-8
brew doctor
2019-12-25 19:08:49 +11:00
Rico Sta. Cruz 2aaf864757
Update rebase workflow 2019-12-25 19:07:51 +11:00
Rico Sta. Cruz 31351e989c
Add Slack notifications to Travis config 2019-12-25 19:03:22 +11:00
Nicholas Chen 6c461dbb7c
brew doctor
Mention brew doctor as a common and useful brew command
2019-12-24 22:57:17 -05:00
Rico Sta. Cruz c9d091c264
Merge pull request #1196 from hjJunior/patch-1
Fix unexpected quotes closing
2019-12-24 22:10:50 +11:00
Rico Sta. Cruz 09ddca4962
Merge pull request #509 from henriquegdantas/patch-2
Improved superagent.md with more properties
2019-12-24 22:09:49 +11:00
Rico Sta. Cruz 7010476b4f
Merge pull request #1234 from ashur1k/patch-1
Update regexp.md
2019-12-24 22:07:42 +11:00
Rico Sta. Cruz 055c3c795d
Merge pull request #1258 from sombriks/patch-1
fix tmux pane creations
2019-12-24 22:07:22 +11:00
Rico Sta. Cruz 743ac3ab20
Merge pull request #1242 from thakkaryash94/patch-1
Add ARG syntax in dockerfile.md
2019-12-24 22:07:01 +11:00
Rico Sta. Cruz 6f0d6e5160
Merge pull request #1249 from setiawanjeje/md/css
update css cheatsheet
2019-12-24 22:06:17 +11:00
Rico Sta. Cruz 24f7cc6197
Update css.md 2019-12-24 22:06:00 +11:00
Rico Sta. Cruz 3c5040facb
Update css.md 2019-12-24 22:04:39 +11:00
Rico Sta. Cruz c6ee300406
Merge pull request #1260 from jojijacobk-forks/master
[Add] few more npm options to the cheatsheet
2019-12-24 22:03:57 +11:00
Rico Sta. Cruz 41ad26474e
Update npm.md 2019-12-24 22:03:49 +11:00
Rico Sta. Cruz d6cfb7b9a4
Merge pull request #1301 from bourhaouta/patch-1
Update enzyme.md
2019-12-24 22:02:25 +11:00
Omar Bourhaouta c9cde14fef
Update enzyme.md 2019-12-24 10:43:42 +01:00
Rico Sta. Cruz b78de6b210
Merge pull request #1094 from benjamin-guibert/patch-1
Replace has_many deprecated ordering
2019-12-18 13:44:09 +11:00
Rico Sta. Cruz 0527273f27
Merge pull request #1088 from dremex/patch-1
Fix broken link for Stencil
2019-12-18 13:43:57 +11:00
Rico Sta. Cruz e3f165a90b
Merge pull request #1072 from telluz/patch-1
Update go.md
2019-12-18 13:43:43 +11:00
Rico Sta. Cruz 13d7dd9e72
Merge pull request #1034 from broven/patch-1
add vim zt
2019-12-18 13:43:32 +11:00
Rico Sta. Cruz d3ba69bbc5
Merge pull request #1006 from andyhunt-ici/patch-1
Update css-grid.md
2019-12-18 13:43:21 +11:00
Rico Sta. Cruz 9661eff7dc
Merge pull request #963 from chimit/patch-1
Fix indentation for Golang
2019-12-18 13:43:07 +11:00
Rico Sta. Cruz 3c90dc2117
Update python.md (#1281)
Update python.md
2019-12-18 13:41:39 +11:00
Rico Sta. Cruz 947d9c3135
Update formatting 2019-12-18 13:41:29 +11:00
Rico Sta. Cruz 4d4ae7bfc7
Merge pull request #1268 from whiskey/patch-1
Added aws configuration profile option
2019-12-18 13:38:53 +11:00
Rico Sta. Cruz 9aa5716f18
Add React Hooks (#1058)
Add React Hooks
2019-12-18 13:36:02 +11:00
Rico Sta. Cruz b54a975c74
Fix tables for the hooks list 2019-12-18 13:34:15 +11:00
Rico Sta. Cruz 3176e8c706
Merge pull request #1126 from vinipsmaker/patch-1
[lua] Fix typo
2019-12-18 13:32:23 +11:00
Rico Sta. Cruz 4f3ef7db34
Update Vue's page template (#1279)
Update Vue's page template
2019-12-18 13:32:15 +11:00
Rico Sta. Cruz b340d90631
Update vue.md 2019-12-18 13:32:07 +11:00
Rico Sta. Cruz 62b7da238b
Merge pull request #1083 from Brad-Christie/patch-1
MomentJS: Only 12 months for `Mo`.
2019-12-18 13:31:38 +11:00
Rico Sta. Cruz 5c30fa8f4a
Fix ports syntax (#1277)
Fix ports syntax
2019-12-18 13:31:08 +11:00
Rico Sta. Cruz 33581a946a
Merge pull request #1285 from behnam/patch-1
Update bash.md
2019-12-18 13:30:55 +11:00
Rico Sta. Cruz 997e7bc0e0
Merge pull request #1290 from jemise111/patch-1
Fix JSDoc function param with multiple types
2019-12-18 13:29:41 +11:00
Rico Sta. Cruz eb78a6f5fe
gitpod: Cache 'bundle install' (#1298)
gitpod: Cache 'bundle install'
2019-12-18 13:26:19 +11:00
Kreyren 0aed72ece6 gitpod: Cache 'bundle install' 2019-12-14 18:48:26 +00:00
Rico Sta. Cruz cb50928040
Merge pull request #1295 from RXT067/gitpod
gitpod: deploy
2019-12-14 17:01:36 +11:00
Rico Sta. Cruz bf06214da9
Merge pull request #1023 from qoomon/master
add missing favicon
2019-12-14 17:00:46 +11:00
Kreyren dcc12e5c00 gitpod: deploy
Disclaimer: i'm not gitpod staff i just like their product

Proposing to integrate gitpod with this repository which is online IDE based on Theia which allows contributors to open an online environment without the need to fetch deps on their local system.

This service is free for open-source repositories.

Example of the runtime:
https://gitpod.io/#https://github.com/RXT067/cheatsheets/tree/gitpod

Signed-off-by: Jacob Hrbek <kreyren@rixotstudio.cz>
2019-12-13 22:45:47 +00:00
Jesse Sessler 50271b5925
Fix function param with multiple types 2019-12-09 12:27:23 -05:00
Behnam Esfahbod ❄ f7a365b23d
Update bash.md
Use `shopt -s` for setting Bash-specific options.
2019-11-30 14:07:21 -08:00
Riadh Bch d5623e46fb
Update python.md
Adding file managing cheatsheet
2019-11-24 18:19:00 +01:00
BosEriko 4d88c763ff update vue.md 2019-11-22 15:30:47 +08:00
David Gonzalez ab73124b11
Fix ports syntax 2019-11-18 16:34:02 +01:00
Rico Sta. Cruz 1ed003c8f4 Merge pull request #1251 from eheydrick/docker 2019-11-17 18:09:51 +11:00
Rico Sta. Cruz 6a12e5827b Update formatting 2019-11-17 18:09:41 +11:00
eric b6272988d4 Add docker run example 2019-11-17 18:09:41 +11:00
Rico Sta. Cruz f402f171b7 Merge pull request #1244 from thakkaryash94/patch-3 2019-11-17 18:00:46 +11:00
Yash Thakkar 7d314b24a4 Add compose build args
Add compose build args. https://docs.docker.com/compose/compose-file/#args
2019-11-17 18:00:33 +11:00
Rico Sta. Cruz 4cdd05f9aa Merge pull request #1264 from kamil2079/patch-1 2019-11-17 17:58:43 +11:00
kamil2079 cdbdd559ca Update xpath.md 2019-11-17 17:58:24 +11:00
Rico Sta. Cruz 7813be2238 bash: Move examples to the bottom 2019-11-17 17:15:12 +11:00
Rico Sta. Cruz c8b99a83ff Merge pull request #1273 from samtrion/patch-1 2019-11-17 17:01:19 +11:00
Rico Sta. Cruz 35b6899663 Update formatting 2019-11-17 17:01:11 +11:00
Martin Stühmer 1a17fe6148 Added match a single character that is not contained within the brackets. For example, [^abc]
Matches a single character that is not contained within the brackets. For example, [^abc] matches any character other than "a", "b", or "c". [^a-z] matches any single character that is not a lowercase letter from "a" to "z". Likewise, literal characters and ranges can be mixed.
2019-11-17 17:01:11 +11:00
Rico Sta. Cruz 5735718b7b Merge pull request #1200 from nickycutesc/patch-3 2019-11-17 16:52:36 +11:00
Nicholas Chen 746cbff8fe Remove Homebrew Cask Link
Remove the Homebrew Cask Link as it just redirects to https://brew.sh/ link.
2019-11-17 16:38:48 +11:00
Rico Sta. Cruz 08ee61d2a4
Merge pull request #1272 from SteamTank/patch-1
Added missing ')'
2019-11-17 16:37:58 +11:00
Rico Sta. Cruz 1333ccada0 Merge pull request #1218 from mtking2/find-cheatsheet 2019-11-17 16:34:54 +11:00
Rico Sta. Cruz 7e787c0a76 Add note about compatibility of mtime conditions 2019-11-17 16:31:53 +11:00
SteamTank 76dc2ef27d
Added missing ')'
Added missing ')' at the end of `fat arrow` example
2019-11-14 10:12:01 +01:00
Carsten Knoblich 14134685c7
Added aws configuration profile option
Using multiple aws credentials is a very common scenario, so hinting to the `--profile` option is highly encouraged.
2019-11-12 12:57:07 +01:00
Joji Jacob 66b3324759
Merge pull request #1 from jojijacobk/jojijacobk-patch-1
Update npm.md
2019-11-04 17:34:58 +05:30
Joji Jacob 27d8585107
Update npm.md
Add few more npm options
2019-11-04 17:34:08 +05:30
Leonardo Silveira 58f0dad61d
fix tmux pane creations
tried on fedora 30 and mac os mojave (tmux from brew), horizontal pane are **C-b "** and vertical pane are **C-b %**
2019-10-30 22:22:04 -03:00
glaze 1d4bca0e19
fix docker bug 2019-10-29 12:15:28 -07:00
kolapsys b7510ac455 Update 'Anchors' in regexp basic cheatsheets 2019-10-24 15:28:41 +03:00
jessica 31fa66ce5d update css md 2019-10-22 22:24:51 +07:00
Yash Thakkar 70f39563b4
Added named volume in docker-compose.md
More info. https://docs.docker.com/compose/compose-file/#volumes
2019-10-21 22:59:47 +05:30
Yash Thakkar 86b951267b
Add argument --build-args in docker
Add --build-args argument in docker CLI. https://docs.docker.com/engine/reference/commandline/build/#set-build-time-variables---build-arg
2019-10-20 12:31:36 +05:30
Yash Thakkar 5c0d96cbf4
Add ARG syntax in dockerfile.md
Add ARG syntax in dockerfile. https://docs.docker.com/engine/reference/builder/#arg
2019-10-20 12:08:13 +05:30
Beathan Andersen c5006cfd4f
fix if regex match
The regex string should not have any quotes around it. To validate test:
$ if [[ "A" =~ . ]]; then echo pass; else echo fail; fi
with and without quotes
2019-10-16 13:52:50 -05:00
is 0c740038e2 Revert "Yarn's js updates"
This reverts commit e2d29e30a4.
2019-10-15 07:54:12 -04:00
Rico Sta. Cruz 4da6b9adbe
Merge pull request #1212 from cjmling/patch-1
Add typedef shorthand in jsdoc
2019-10-15 20:31:31 +11:00
Rico Sta. Cruz 1de147b430
Merge pull request #1211 from wowawiwa/patch-3
Add `yarn init` to equivalences.
2019-10-15 20:31:13 +11:00
Rico Sta. Cruz 46d700336f
Merge pull request #1220 from mtking2/bash-cheatsheet
Update bash.md
2019-10-15 20:30:10 +11:00
Rico Sta. Cruz 7bc7228728
Fix extra fences 2019-10-15 20:30:00 +11:00
Rico Sta. Cruz 23274c85e9
Merge pull request #1219 from amiraliakbari/patch-1
Corrected links to Ansible documentation
2019-10-15 20:29:12 +11:00
Rico Sta. Cruz 5f56569a11
Merge pull request #1227 from Roei-Bracha/patch-1
add some clean up commends
2019-10-15 20:27:51 +11:00
Rico Sta. Cruz 8820f58f31
Update docker.md 2019-10-15 20:27:06 +11:00
Rico Sta. Cruz 25a2090a84
Merge pull request #1231 from eheydrick/master
Update chef hints to be more modern
2019-10-15 20:24:42 +11:00
Rico Sta. Cruz df11d9ed8b
Update regexp.md 2019-10-15 20:24:15 +11:00
eric 9f66c5d998 Add EC2 instance termination command 2019-10-14 23:04:26 -07:00
Mustafa İlhan e21dcf1028
Merge branch 'master' into feature/linux-disk-size 2019-10-14 19:13:52 +02:00
ashur1k 41babf9c07
Update regexp.md
Added patterns of groups.
2019-10-14 11:27:55 +03:00
Eric Heydrick a5490a0641 Update chef hints to be more modern 2019-10-09 12:44:58 -07:00
Roei c44a075f78
add some clean up commends 2019-10-08 11:18:25 +03:00
Enes Kirimi d5ee7731e6
Update obs. Enzyme methods 'getNode' & 'getNodes'
`getNode` and `getNodes` methods are depreciated and no longer in use. They are renamed to `getElement` and `getElements` instead. 

See Enzyme docs here: 
- https://airbnb.io/enzyme/docs/api/ShallowWrapper/getElement.html
- https://airbnb.io/enzyme/docs/api/ShallowWrapper/getElements.html
2019-10-05 11:50:03 +02:00
is e2d29e30a4 Yarn's js updates 2019-10-04 22:01:32 -04:00
is 8769155f5e update regexp 2019-10-04 21:59:58 -04:00
Michael King 452c07e78a update metadata 2019-10-04 17:27:26 -04:00
Michael King f1a7af534f update metadata 2019-10-04 17:26:14 -04:00
Michael King 8843c62e6d add the $0 special variable to bash.md 2019-10-02 11:27:23 -04:00
AmirAli Akbari bbe2b8c20d
Corrected links to Ansible documentation
The external links for inventory and playbook where displaced and needed to be swapped.
2019-10-02 16:30:51 +03:30
Michael King b879ad3316 add -atime, -ctime, and -mtime to find.md 2019-10-01 17:19:11 -04:00
Chandrajeet Maurya a001fdcc00
Add typedef shorthand in jsdoc 2019-10-01 12:29:36 +07:00
Charles 1ac4600426
Add `yarn init` to equivalences. 2019-09-30 15:08:39 +02:00
Michael Hienle e7b9a592b9 Issue #767: Add top cheatsheet 2019-09-28 11:03:50 +02:00
Rico Sta. Cruz 1e927dccfc Add GitHub workflow for auto-rebase 2019-09-25 19:03:47 +10:00
Rico Sta. Cruz f3b1d593e8
Update travis configuration (#1210)
Update travis configuration
2019-09-25 18:54:22 +10:00
Rico Sta. Cruz b0133fbe85
Publish frequently used Homebrew Cask commands (#1201)
Publish frequently used Homebrew Cask commands
2019-09-25 10:11:53 +10:00
Rico Sta. Cruz ccd9127c52
Update homebrew.md 2019-09-25 10:11:33 +10:00
Rico Sta. Cruz 74ba88e2da
Merge pull request #1205 from herschel666/patch-1
Add "Begins with" attribute selector to CSS sheet
2019-09-25 10:10:37 +10:00
Rico Sta. Cruz cfa6a1a08f Update travis configuration 2019-09-25 10:07:09 +10:00
Rico Sta. Cruz bc68aeea82
Merge pull request #1206 from nickycutesc/patch-5
Updating printf functions
2019-09-25 10:05:22 +10:00
Rico Sta. Cruz 88c2807868
Merge pull request #1209 from 10sr/patch-1
Use https for EditorConfig URL
2019-09-25 10:04:57 +10:00
Rico Sta. Cruz 39a691de4e
Merge pull request #1207 from wowawiwa/patch-1
Fix typo
2019-09-25 10:03:28 +10:00
10sr c5e46d65e9
Use https for EditorConfig URL 2019-09-25 00:35:57 +09:00
Charles b9ba6a1ca7
Fix typo 2019-09-21 16:13:48 +02:00
Nicholas Chen 0655d01d62
Updating printf functions
Updating printf functions to print numbers and floats.
2019-09-18 21:41:04 -04:00
Emanuel Kluge 27be18e66b
Add "Begins with" attribute selector to CSS sheet 2019-09-18 15:01:33 +02:00
Nicholas Chen f2f6cafab6
Publish frequently used Homebrew Cask commands
Publish frequently used Homebrew Cask commands which I have found useful.
2019-09-16 21:54:09 -04:00
Helio S. Junior f4070993d6
Fix unexpected quotes closing 2019-09-12 13:36:31 -03:00
Rico Sta. Cruz c353827bc4
Merge pull request #1166 from wreckah/patch-1
Add promised type
2019-09-01 16:33:11 +10:00
Rico Sta. Cruz 013be6f383
Merge pull request #1182 from smoralesjr/patch-1
Fixing typos "tamplate" -> "template"
2019-09-01 16:32:43 +10:00
Rico Sta. Cruz 7c933b55be
Merge pull request #1188 from gkubisa/patch-1
Fix "and" operator in lua.md
2019-09-01 16:32:16 +10:00
Rico Sta. Cruz c98bbd5b7d
Merge pull request #1165 from osiyuk/master
useful rsync options
2019-09-01 16:31:52 +10:00
Rico Sta. Cruz daed05eac0
Merge pull request #1173 from vsilverman/patch-1
Updated python.md
2019-09-01 16:31:21 +10:00
Rico Sta. Cruz c2d101f521
Merge pull request #1180 from l3satwik/patch-1
Update rollup.md
2019-09-01 16:30:10 +10:00
Greg Kubisa 6710ba8dc7
Fix "and" operator in lua.md 2019-08-30 08:39:08 +02:00
Richard f58b48c931
additional changes to spotlight indexing 2019-08-27 15:22:59 +02:00
Richard 462e38c332
Update on spotlight indexing and system utils
- /etc/hostconfig is no longer supported since Yosemite.
- removed the s from `mdutils` and `tmutils`
2019-08-26 16:17:10 +02:00
Samuel Morales, Jr 6a8b3e2174
Fixing typos "tamplate" -> "template"
I noticed three areas where the guide had the misspelling "tamplate."
2019-08-23 18:05:59 -04:00
Satwik Gupta 29de4b74d0
Update rollup.md 2019-08-22 17:15:19 +05:30
Saul Mestanza 7957c3bee4
Update phoenix-migrations.md 2019-08-15 16:19:56 -05:00
Vlad Silverman 2175c6275c
Updated python.md
Provided correct description for list elements replacement
2019-08-12 15:41:46 -07:00
Alexander Perlamutrov 27714bd874
Add promised type
https://github.com/jsdoc/jsdoc/issues/1197
2019-08-06 13:53:26 +03:00
osiyuk 9657713dde
rsync bwlimit option
useful for downloading from small and weak hosting
2019-08-05 21:28:26 +03:00
osiyuk 00a0c399cf
rsync stats option
very useful if you use -a option with large directories
2019-08-05 21:23:45 +03:00
A1RO 331b30e13f
Swap "Previous/next end of word" shortcuts 2019-08-03 16:48:18 -04:00
ZhdanovMV 55d018bc87
Update phoenix-migrations.md 2019-08-03 21:57:44 +02:00
Rico Sta. Cruz 090d42f103
Create new API category (#1123) 2019-07-07 20:55:30 +10:00
Rico Sta. Cruz 3c76e512a6
Merge pull request #1136 from xvazquezc/patch-2
upper/lowercase manipulation
2019-07-06 01:42:46 +10:00
xvazquezc b3e81e0da9
upper/lowercase manipulation 2019-07-05 15:30:00 +10:00
Vinícius dos Santos Oliveira 5bb0b19505
[lua] Fix typo 2019-06-22 13:48:42 -03:00
Daniel Saavedra 8d5a749df3
Fix Typo 2019-06-07 21:16:14 -06:00
Benjamin Guibert 8662fd4d3d
Replace has_many deprecated ordering 2019-05-17 17:21:58 +02:00
Kerry Peterson 87b52d5186
Fix broken link for Stencil 2019-05-08 00:37:31 -04:00
Brad Christie b21150deeb
Only 12 months. 2019-05-01 22:17:51 -04:00
telluz e2d9dc7772
Update go.md
Lazy input with defer, independent of where where its defined in codeland
2019-04-17 14:08:33 +02:00
bastianbowe2000 665406da15
Add docker logs instructions 2019-04-10 14:06:35 +02:00
James 303813e74a Added React Hooks 2019-04-04 11:22:04 +11:00
Ahmedur Rahman Shovon c706d50ca4
updated git-branch.md
- Added branch listing
- Added branch deleting
2019-03-28 11:24:55 +06:00
Rico Sta. Cruz fc41560d71
Merge pull request #1052 from rstacruz/fix/old-styles
Fix styles for older pages
2019-03-27 20:02:17 +08:00
Rico Sta. Cruz fd64f68d80
Fix sass extentsion 2019-03-27 19:38:24 +08:00
Rico Sta. Cruz aed89335d9
Make 'missing jekyll' a warning instead 2019-03-27 19:22:13 +08:00
Rico Sta. Cruz c0835bcb29
Check for presence of Jekyll before proceeding 2019-03-27 19:17:17 +08:00
Rico Sta. Cruz 3957e0f973
Add old /til/ styles 2019-03-27 19:14:40 +08:00
Rico Sta. Cruz e05517f9f7
Show warning when binfiles aren't available 2019-03-27 19:14:34 +08:00
Rico Sta. Cruz fa039e5b65
Merge pull request #994 from yuklia/docs/linux
Linux commands
2019-03-24 07:43:51 +08:00
Rico Sta. Cruz a18063bb9a
Update linux.md 2019-03-24 07:43:41 +08:00
Rico Sta. Cruz 7f7e899014
Merge branch 'pr-974' 2019-03-24 07:40:26 +08:00
Rico Sta. Cruz f79ab86a2c
regexp: Update formatting 2019-03-24 07:38:52 +08:00
Rico Sta. Cruz aaa1f64e65
Merge branch 'pr-975' 2019-03-24 07:35:57 +08:00
Rico Sta. Cruz 61dd655951
Merge branch 'pr-982' 2019-03-24 07:34:55 +08:00
Rico Sta. Cruz 94db676cfe
jsdoc: Note that importing is TypeScript-specific 2019-03-24 07:34:48 +08:00
Rico Sta. Cruz a328be7419
Merge branch 'pr-980' 2019-03-24 07:31:08 +08:00
Rico Sta. Cruz a6cc2eade2
Update bash.md timestamp 2019-03-23 22:32:39 +08:00
Rico Sta. Cruz 34839f27d8
Merge branch 'pr-998' 2019-03-23 22:26:48 +08:00
Rico Sta. Cruz 8ea2be4731
Update formatting 2019-03-23 22:26:44 +08:00
Rico Sta. Cruz 15ec89d069
Merge branch 'pr-1019' 2019-03-23 22:13:19 +08:00
Rico Sta. Cruz 2349f623c2
Fix formatting 2019-03-23 22:10:27 +08:00
metaJS dfce59b09f
update: vim zt 2019-03-09 15:33:31 +08:00
Bengt Brodersen 327932b685
add favicon 2019-02-28 10:35:40 +01:00
Gabriel Petry 57c49cd8aa
add c-like for loop 2019-02-22 07:30:15 -03:00
Andy Hunt 376563ba4b
Update css-grid.md
Line 42 -  grid-tamplate-areas to grid-template-areas
2019-02-05 13:16:48 -05:00
Rico Sta. Cruz fa16f8134c
Update CodeFund snippet 2019-01-23 14:46:18 +08:00
Edson Ticona 69f50888f4 Adds associative array usage 2019-01-20 13:18:13 +01:00
Rico Sta. Cruz a930009433
Merge pull request #991 from chandsie/patch-1
Correct description of ":=" and "=" operators
2019-01-20 14:49:25 +08:00
Rico Sta. Cruz 4c2bdaa050
Update makefile.md 2019-01-20 14:49:16 +08:00
Rico Sta. Cruz 2d565ceec4
Merge pull request #997 from rstacruz/rstacruz/2019-01-20-codefund-update
Update Docker setup and sponsor code
2019-01-20 14:46:32 +08:00
Rico Sta. Cruz 9ce285d9ac
Prettier config 2019-01-20 14:19:08 +08:00
Rico Sta. Cruz b9ab467545
Update CodeFund snippet 2019-01-20 14:15:29 +08:00
Rico Sta. Cruz 2dea4f4c8e
Update critical path CSS 2019-01-20 14:12:28 +08:00
Rico Sta. Cruz 07d6304a0f
Update Docker setup with new Node, Yarn, etc 2019-01-20 14:11:35 +08:00
Rico Sta. Cruz 11b4c983a1
Remove trace of old sponsor code 2019-01-20 13:59:01 +08:00
Yulia Kostrikova 3b758480db Linux commands 2019-01-17 21:45:56 +02:00
Shreyas Chand f2583a9960
Correct description of ":=" and "=" operators
The description of the ":=" and "=" assignment operators were flipped. As documented in the GNU make manual (https://www.gnu.org/software/make/manual/make.html#Reading-Makefiles), the ":=" assignment operatory is the immediate assignment operation and "=" is the deferred assignment operation. This change switches the descriptions to correspond to the correct operator and augments the description to clarify the behaviour.
2019-01-15 22:59:49 -08:00
Mustafa İlhan 57540e6d64 Seperates disk usage 2019-01-12 21:43:58 +03:00
Mustafa İlhan d184261ab0 Adds disk space commands to linux. 2019-01-12 21:36:17 +03:00
Ben fa9f16c5ee
Update jsdoc.md
Add a section demonstrating how to import types from typescript libraries.
2019-01-10 08:33:55 -06:00
Will Ware a75bec82da
"not digit" => "d" is upper case? 2019-01-08 12:05:23 -05:00
David Winterstein 4f0fb36e6d
regexp.md - add {,x} character class 2019-01-04 14:49:58 +01:00
Dien Luong eccede41ed
jsdoc.md: Fixed Types table
Escape the '|' in the "Multiple types" row.
2019-01-02 11:21:33 -05:00
Rico Sta. Cruz 79f35133f0
Merge pull request #956 from bhargavgv/patch-1
Add AppleScript "delay" command
2018-12-29 14:22:16 +08:00
Rico Sta. Cruz b2b544e9bd
Merge pull request #968 from rstacruz/mysql-formatting
mysql: Update formatting
2018-12-29 14:20:57 +08:00
Rico Sta. Cruz 4588c31ee9
Merge pull request #969 from rstacruz/rstacruz-patch-1
rest-api: Update formatting
2018-12-29 14:20:29 +08:00
Rico Sta. Cruz 945942faa3
Merge pull request #970 from freezeeedos/patch-1
Copy password to clipboard
2018-12-29 14:20:05 +08:00
Quentin Gibert 4d3077222d
Copy password to clipboard 2018-12-25 17:38:58 +01:00
Rico Sta. Cruz c65dc4811d
Merge pull request #634 from moviuro/patch-1
Update bash.md
2018-12-25 20:39:07 +08:00
Rico Sta. Cruz 7406b2bc71
Merge pull request #964 from lucywyman/add-puppet-bolt
Create bolt.md for puppet-bolt
2018-12-25 20:38:44 +08:00
Rico Sta. Cruz 4eacb18b60
Merge pull request #952 from hrvoj3e/patch-1
slicing from right
2018-12-25 20:34:48 +08:00
Rico Sta. Cruz 79384c2e24
bash: Update timestamp 2018-12-25 20:34:40 +08:00
Rico Sta. Cruz d1a15b33d9
Merge pull request #960 from hanoii/composer
Improving composer cheatsheet
2018-12-25 20:34:00 +08:00
Rico Sta. Cruz 996e1829a1
Merge pull request #954 from vastpeng/cheatsheet/scp
add(cheatsheet): scp
2018-12-25 20:32:55 +08:00
Rico Sta. Cruz 11a00de0db
bolt: Add attribution 2018-12-25 20:31:39 +08:00
Rico Sta. Cruz 37a0cf7d5e
rest-api: Update formatting 2018-12-25 20:30:10 +08:00
Rico Sta. Cruz 5d99c3619f
scp: Update timestamp 2018-12-25 20:28:54 +08:00
Rico Sta. Cruz 7d2217779a
scp: Fix wrong layout 2018-12-25 20:28:06 +08:00
Rico Sta. Cruz 08d176e787
scp: Update formatting 2018-12-25 20:27:52 +08:00
Rico Sta. Cruz 28fac2ae2a
mysql: Update formatting 2018-12-25 20:25:48 +08:00
Rico Sta. Cruz 0e64b13d77
Merge pull request #698 from senyaak/master
Update typescript.md
2018-12-25 20:24:57 +08:00
Moviuro 0b74fe127d
Merge branch 'master' into patch-1 2018-12-20 11:39:41 +01:00
Lucy Wyman dc74c2b5ea
Create bolt.md for puppet-bolt tool
This adds a cheatsheet for [bolt](https://github.com/puppetlabs/bolt)
2018-12-17 21:18:58 -08:00
Chimit 5cff5267ab
Fix indentation 2018-12-16 13:26:44 +08:00
Ariel Barreiro 938b9d00b1 Improving composer cheatsheet 2018-12-11 13:53:39 -03:00
Ian Zabel b922942c55 Fix "Factory Girl" category (#820)
It was incorrectly categorized as a JavaScript library, but it was meant to be a Ruby library
2018-12-06 16:03:57 -07:00
chad d 16ab1ceb31 Emmet cleanup 2018-12-06 15:46:04 -07:00
danieljauch c695eb7add Added Emmet cheatsheet (#737)
* Added Emmet cheatsheet

* Oops, forgot prism_lanugages property
2018-12-06 15:40:38 -07:00
chad d d77bc9e67a Rebuild 2018-12-06 15:39:02 -07:00
danieljauch 34009ee911 Added new Haml cheatsheet. Includes Ruby injection with some examples of variable declaration and output. (#736) 2018-12-06 15:36:12 -07:00
chad d 639085251c Vim-diff cleanup 2018-12-06 15:33:10 -07:00
Ali Karbassi f871d96e3b Beginning of vimdiff (#218) 2018-12-06 15:30:27 -07:00
chad d 066d825b91 Goby cleanup 2018-12-06 15:29:30 -07:00
Shozo Hatta db405af253 Apply feedback (#487) 2018-12-06 15:23:31 -07:00
chad d 26c6ed30ad Regexp cleanup 2018-12-06 15:19:55 -07:00
Rizqy Hidayat 15f8649fd9 Update regexp basic cheatsheets (#906) 2018-12-06 15:17:16 -07:00
chad d b46a977600 Categorizing 2018-12-06 15:15:40 -07:00
Adam McNeilly 04ea319247 Added Kotlin cheatsheet. (#724) 2018-12-06 14:48:31 -07:00
chad d dccb59103e Adding C-like category and C# cleanup 2018-12-06 14:40:34 -07:00
chad d de5f5a4f2b Merge branch 'master' of github.com:rstacruz/cheatsheets 2018-12-06 14:26:49 -07:00
Akram Shaari 2f7fcbe089 Add C# 7 (#200)
* Added C# 7

* Some changes to Tuple Deconstruction section
2018-12-06 14:26:16 -07:00
chad d fdad334b45 CSS grid updated date 2018-12-06 14:23:22 -07:00
danieljauch e722384011 Feature/new cheatsheet css grid (#738)
* Started grid file. Looking at weight properties

* Finished compiling cheatsheet from Malven's site and CSS Tricks
2018-12-06 14:15:01 -07:00
Bhargav GV 37a09ba016
Add AppleScript "delay" command 2018-12-06 15:35:34 -05:00
Vast fd17d3f1b6 add(cheatsheet): scp 2018-12-06 09:59:38 +08:00
hrvoj3e 8365f5e761
slicing from right 2018-12-02 11:37:15 +01:00
Bez Hermoso f0705b3a4f Vim: Add section on spell-checking (#864) 2018-11-28 16:02:35 -07:00
chad d bb00a53532 Clean up from PRs 2018-11-19 23:18:50 -07:00
chad d c46315ff3e Cleanup MySQL 2018-11-19 20:21:34 -07:00
Yahya Bahsoun fa0b69ea8f Create mysql.md (#941)
Cheatsheet for MySQL
2018-11-19 20:17:42 -07:00
chad d c7bfd159a5 Updating Request a Cheatsheet URL 2018-11-19 19:57:16 -07:00
Michael Hienle 6107936ac2 Add info about !!, !^, !$ (#844)
* Add info about !!, !^, !$

* Do not use example with sudo
2018-11-19 14:09:09 -07:00
evicent 0347f74435 Update yarn.md (#933)
Add this equivalent
npm update | yarn upgrade
2018-11-16 13:15:03 -07:00
Jan Domański 658c88a8c3 Update php.md (#924)
* Update php.md

* Update php.md
2018-11-16 13:10:22 -07:00
Seth 898c8d904b Bash correction (#922)
* fix bash path split example

* add two string equality and example
2018-11-16 13:08:34 -07:00
ByMARLin 2b8e8ce90c Added .encode() to casting (#916)
.encode() turns string into byte-like object.
2018-11-16 13:07:42 -07:00
Ziyaddin Sadigov 489c8ecac6 Add production mode for migration operations (#910)
Would be better to add `--env production` flag to all migration operations
2018-11-16 13:06:40 -07:00
RaVi 460412d90f Add stash view (#901) 2018-11-16 13:00:00 -07:00
Bez Hermoso 62ebf94111 <(...) vs =(...) in zsh (#899) 2018-11-16 12:59:38 -07:00
Paul Cathey 6164a16f57 Adds simpler push for bash array (#894)
Here is a less verbose push than the one listed
2018-11-16 12:58:15 -07:00
Lubos Belak 117e9905d8 Add some ES2018 examples to the cheatsheets (#889)
* Add some ES2018 examples to the cheatsheets

* Add examples of string methods: padStart, padEnd

* Add examples of extracting Object values
2018-11-16 12:57:03 -07:00
Mateus Pontes 75740e2658 docker-compose: add networking (#876) 2018-11-16 12:54:03 -07:00
Rohit Sehgal 5268d69e3c Update httpie.md (#872) 2018-11-16 12:52:30 -07:00
Bez Hermoso 537771aeab Git: GPG signing commits (#863) 2018-11-16 12:49:59 -07:00
Afif Sohaili c9279b9858 Add cheatsheet on handling generated content with Bulma. (#862)
In cases where WYSIWYG editors generate the HTML content of the page,
the content does not have Bulma classes applied to them, which means
they'll be unstyled because that's just how Bulma works. An `<h1>` tag
does not have a style until you add the class `title` to it.

To handle this case, wrap the generated content with `.content` class.
2018-11-16 12:47:54 -07:00
Joonas Kallunki 4a77b25dee [React] update react syntaxes and remove legacy methods (#856)
* Update React cheatsheet syntaxes and remove legacy methods

* Update React updated date
2018-11-16 12:46:54 -07:00
Pavel Lishin a78dab76cf Update ExUnit cheatsheet: Demonstrate named setup context more clearly (#850) 2018-11-16 12:41:08 -07:00
Hannes Leutloff 05bca6d01c Update es6.md (#709)
* Update es6.md

Add edge case of implicitly returned object, since the notation is a little different.

* Update es6.md: fix typo
2018-11-16 12:28:50 -07:00
Hannes Leutloff 41c619d50d Update sass.md (#710)
* Update sass.md

Make `Mixin Properties` a subpart of `Mixins`, so that they are displayed next to each other, since they are a logical unit.
Add section about default values and default variables for mixins.

* Update sass.md according to comments in #710
2018-11-16 12:28:11 -07:00
Devin Samarin ea1fff2e40 find: Include file size conditions (#848)
The units of the size command are not straight-forward. The default
file size unit is counter-intuitively 512-bit blocks. This patch
includes a cheat sheet for the ability to filter files based on its
size and the various units that are accepted by the find command.
2018-11-07 15:57:17 -07:00
Michael Hienle 2bef29186d Add cd - (#843) 2018-11-07 15:54:57 -07:00
Michael Hienle 75ba17605d Use 4 spaces throughout file (#841) 2018-11-07 15:53:52 -07:00
Michael Hienle abb99f3674 Add info for how to sync a fork (#840) 2018-11-07 15:51:30 -07:00
Michael Hienle 4c1e81452a Add curl --silent (#839)
Signed-off-by: Michael Hienle <hienle.michael@gmail.com>
2018-11-07 15:50:57 -07:00
Michael Hienle 8e9a1e4384 Add curl -L (#838)
Signed-off-by: Michael Hienle <hienle.michael@gmail.com>
2018-11-07 15:50:32 -07:00
Stephen Rhodes 1782484ce9 Updated flow.md to fix type for error (#833) 2018-11-07 15:46:01 -07:00
calumks db77ac7c98 Add undo and redo shortcuts (#796) 2018-11-07 15:04:50 -07:00
calumks 8e5952a677 Add key shortcut info. (#795) 2018-11-07 15:03:42 -07:00
Thomas Röggla 0b31132966 changed compliment() to complement() in sass.md (#792) 2018-11-07 15:02:07 -07:00
haider 0804754a91 Added 2 String Comparison Conditionals (#769)
they check to see if the strings are equal or not... 
Just thought its an essential comparison that should be in the cheatsheet.
2018-11-07 14:59:09 -07:00
DannyMeister f683f59ce2 Update npm documentation link in semver.md (#761) 2018-11-07 14:58:37 -07:00
David Lay eb00583fa6 fixed refs format variable on git-log (#742)
Said `%cd` and should be `%d`
2018-11-07 14:37:18 -07:00
AntoineGoncalves 6a51d514e8 Update vim.md with "gvimdiff", "tab pages" and ajustment of the layout (#741)
* Update vim.md with "gvimdiff" command

* Update vim.md with a section for using tab pages

* VIM: Adjustement of the layout

Add table with Shortcut and Description for Calculator section.
Replace all of first letter of description by uppercase when it was lowercase.

* Update vim.md

* Update vim.md

* Update vim.md
2018-11-07 14:35:25 -07:00
Hannes Leutloff 6892dc8615 Update rsync.md (#718)
Clarify folder/folder-content syncing.
Add options --partial and -P, since partial helps with network errors and -P is convenient.
2018-11-07 14:23:17 -07:00
Jason Weir a4053b1b8e Add spell checking to vim cheatsheet (#497)
* Add spell checking to vim cheatsheet

* Add backticks for command formatting
2018-11-07 14:08:13 -07:00
Tredecies 82985172c5 Tmux sessions and windows (#682)
* most basic tmux sessions and windows commands added

* Detach -> detach
2018-11-07 13:55:40 -07:00
Enrico Sacchetti d444d081d5 Feat/markdown tables (#665)
* docs(contributing): add yarn to one-time docker use

* feat(markdown): add lists and tables

- add h2 example
2018-11-07 13:53:22 -07:00
matjojo 5aa602c9e0 Update lua.md (#652)
Change zero to one indexed
2018-11-07 13:48:58 -07:00
Ben Weller 2c163cb3ba Add example for `aws s3 rm` with `--recursive` (#651) 2018-11-07 13:44:51 -07:00
Adrian 60de6e9c49 Add tricks to go back to previous branch (#648) 2018-11-07 13:35:06 -07:00
Michael Hienle 3dc8b2abc9 Some minor improvements to python cheatsheet (#623)
Added enumerate and pop with index and changed a few small things.
2018-11-07 13:31:46 -07:00
JBallin 668103896f Fix "select" link (#600) 2018-11-07 13:29:10 -07:00
jascha ehrenreich e059b21d6f Update composer.md (#628)
replaced to with from
2018-11-07 13:27:52 -07:00
Audrey Chavarria 77d78b29f6 Update CSS.md Animation section (#625)
Updated the order in which properties appear in the Properties table to match the order in which they should be listed in the Shorthand form. Also added 2 missing properties ( animation-fill-mode & animation-play-state ) and an example for them. See link for more info: https://www.w3schools.com/cssref/css3_pr_animation.asp.
2018-11-07 13:26:57 -07:00
Sherly Chan 12feb8202a correcting enzyme props to prop (#513) 2018-11-07 13:11:37 -07:00
Arsenij Schützer c2e9c8fc36 Update typescript.md 2018-07-31 17:24:26 +02:00
Moviuro 194bd28bf9
Update bash.md
`[` use is made obsolete by `[[` (which should be used only for bash scripts).
Add examples with commands conditionals (if ping ...; then...)
Add link to shellcheck + mywiki.wooledge.org
2018-07-23 15:34:18 +02:00
henriquegdantas 76b013411a
Improved superagent.md with more properties
- Better identation
- Markdown with correct syntax highlighting
- Comment for every property
- Added more properties (with examples)
2018-04-21 09:37:49 -03:00
431 changed files with 18051 additions and 8733 deletions

View File

@ -1,9 +1,10 @@
{
"presets": [
[
"env",
"@babel/preset-env",
{
"forceAllTransforms": true
"useBuiltIns": "entry",
"targets": "> 2%"
}
]
]

1
.gitattributes vendored Normal file
View File

@ -0,0 +1 @@
yarn.lock binary

26
.github/workflows/build.yml vendored Normal file
View File

@ -0,0 +1,26 @@
name: Build and test
on: [push, pull_request]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Use Node.js
uses: actions/setup-node@v2
with:
node-version: '16.14.2'
cache: yarn
- name: Use Ruby
uses: ruby/setup-ruby@v1
with:
ruby-version: '2.7.5'
bundler-cache: true
- run: yarn install --frozen-lockfile
- run: yarn build
- run: yarn test
- run: yarn test:smoke

55
.github/workflows/deploy.yml vendored Normal file
View File

@ -0,0 +1,55 @@
name: Deploy
on:
push:
branches:
master
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: "Notes (read me) 📖"
run: |
# About this workflow:
# This workflow generates GitHub pages, but IT IS NOT USED. It is
# only generated as an emergency fallback in case Netlify goes down 😊
- uses: actions/checkout@v2
with:
persist-credentials: false
- name: Use Node.js
uses: actions/setup-node@v2
with:
node-version: '16.14.2'
cache: yarn
- name: Use Ruby
uses: ruby/setup-ruby@v1
with:
ruby-version: '2.7.5'
bundler-cache: true
- run: yarn install --frozen-lockfile
- run: yarn build
- name: "Deploy to gh-pages 🚀"
uses: JamesIves/github-pages-deploy-action@releases/v3
with:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
BRANCH: gh-pages
FOLDER: _site
- name: "Deploy to mirror 🚀"
uses: JamesIves/github-pages-deploy-action@releases/v3
with:
ACCESS_TOKEN: ${{ secrets.PERSONAL_ACCESS_TOKEN }}
REPOSITORY_NAME: rstacruz/devhints-mirror
BRANCH: gh-pages
FOLDER: _site
- name: "Notify Slack 📢"
uses: rtCamp/action-slack-notify@v2.0.2
env:
SLACK_WEBHOOK: ${{ secrets.SLACK_DEPLOY_WEBHOOK_URL }}

24
.github/workflows/rebase.yml vendored Normal file
View File

@ -0,0 +1,24 @@
# https://github.com/cirrus-actions/rebase
on:
issue_comment:
types: [created]
name: Automatic rebase
jobs:
rebase:
name: Rebase
if: github.event.issue.pull_request != '' && contains(github.event.comment.body, '/rebase')
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@master
- name: Automatic Rebase
uses: cirrus-actions/rebase@v1.2.0
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
# https://github.community/t5/GitHub-Actions/Workflow-is-failing-if-no-job-can-be-ran-due-to-condition/m-p/38186#M3250
always_job:
name: Aways run job
runs-on: ubuntu-latest
steps:
- name: Always run
run: echo "This job is used to prevent the workflow to fail when all other jobs are skipped."

6
.gitignore vendored
View File

@ -3,3 +3,9 @@ _site
.jekyll-metadata
/node_modules
/vendor
.idea/
.cache/
# Generated by 'yarn dev'
/_includes/2017/critical/*
/assets/packed/*

15
.gitpod.yml Normal file
View File

@ -0,0 +1,15 @@
image: gitpod/workspace-full
ports:
- port: 4001
onOpen: open-preview
tasks:
- init: yarn install && bundle install
command: env PORT=4001 yarn run dev
github:
# Prebuild the docker image for gitpod - https://www.gitpod.io/docs/prebuilds/
prebuilds:
# enable for the master/default branch
master: true

6
.prettierrc Normal file
View File

@ -0,0 +1,6 @@
{
"semi": false,
"singleQuote": true,
"jsxSingleQuote": true,
"trailingComma": "none"
}

View File

@ -1,10 +0,0 @@
language: ruby
rvm:
- 2.5.0
script:
- make -B _site
- if ! make test; then make test-warning; exit 16; fi
cache:
directories:
- node_modules
- _site

1
CNAME
View File

@ -1 +0,0 @@
devhints.io

View File

@ -1,8 +1,23 @@
# Developer notes
## Gitpod
This repository supports contribution using [gitpod](https://gitpod.io) which is online IDE using [Theia](https://github.com/eclipse-theia/theia).
To open-up the environment simple natigate on https://gitpod.io/#https://github.com/rstacruz/cheatsheets
Or using a button:<br>
[![Open in Gitpod](https://gitpod.io/button/open-in-gitpod.svg)](https://gitpod.io/#https://github.com/rstacruz/cheatsheets)
### Preview built website
To preview the website you need to first build it then you can navigate to file that you are trying to contribute and preview directly.
<img src='_docs/images/gitpod_preview_tut.png' width=828 height=459/>
## Starting a local instance
This starts Jekyll and Webpack. This requires recent versions of [Node.js], [Yarn], [Ruby] and [Bundler] installed.
This starts Jekyll and Parcel. This requires recent versions of [Node.js], [Yarn], [Ruby] and [Bundler] installed.
```bash
yarn install
@ -27,7 +42,7 @@ First time setup:
docker-compose build
# First-time setup
docker-compose run --rm web bundle install
docker-compose run --rm web bundle install && docker-compose run --rm web yarn install
```
Starting the server:
@ -42,9 +57,11 @@ See <https://devhints.io/cheatsheet-styles> for a reference on styling.
## JavaScript
When updating JavaScript, be sure webpack is running (`yarn run dev` takes care of this).
When updating JavaScript, be sure Parcel is running (`yarn dev` takes care of this).
This auto-updates `/assets/packed/` with sources in `_js/`.
This auto-updates `/assets/packed/` and `_includes/2017/critical/` with sources in `_parcel/`.
Before committing, run `yarn parcel:build` first.
## JavaScript tests
@ -61,16 +78,16 @@ Each sheet supports these metadata:
```yml
---
title: React.js
layout: 2017/sheet # 'default' | '2017/sheet'
layout: 2017/sheet # 'default' | '2017/sheet'
# Optional:
category: React
updated: 2017-08-30 # To show in the updated list
ads: false # Add this to disable ads
weight: -5 # lower number = higher in related posts list
deprecated: true # Don't show in related posts
deprecated_by: /enzyme # Point to latest version
prism_languages: [vim] # Extra syntax highlighting
updated: 2020-06-14
ads: false # Add this to disable ads
weight: -5 # lower number = higher in related posts list
deprecated: true # Don't show in related posts
deprecated_by: /enzyme # Point to latest version
prism_languages: [vim] # Extra syntax highlighting
intro: |
This is some *Markdown* at the beginning of the article.
tags:
@ -79,9 +96,10 @@ tags:
# Special pages:
# (don't set these for cheatsheets)
type: home # home | article | error
og_type: website # opengraph type
type: home # home | article | error
og_type: website # opengraph type
---
```
## Prism languages
@ -101,6 +119,7 @@ title: ES2015
category: Hidden
redirect_to: /es6
---
```
## Localizations
@ -128,7 +147,7 @@ The site devhints.io is backed by CloudFlare. Updates will take 2 days to propag
There are multiple ways to set meta description.
### keywords (and intro)
### Keywords (and intro)
Set `keywords` (and optionally `intro`). This is the easiest and the preferred
way for now.
@ -141,7 +160,7 @@ React.Component · render() · componentDidMount() · props/state · React is a
JavaScript library for building web...
```
### description (and intro)
### Description (and intro)
Set `description` (and optionally `intro`)
@ -153,29 +172,6 @@ One-page reference to React and its API. React is a JavaScript library for
building web user interfaces...
```
### intro only
### Intro only
If you left out `description` or `keywords`, a default description will be added.
## Critical path CSS
The critical path CSS is stored in:
- `_includes/2017/critical/home.html`
- `_includes/2017/critical/sheet.html`
You'll need to update these every now and then when you change something in the CSS. Use this to update these snippets:
```
yarn run critical
```
You can temporarily disable critical path optimizations by loading it with `?nocrit=1`, eg, `https://devhints.io/?nocrit=1`.
## Critical path JS
There's JavaScript that's included inline in every page. It's entrypoint is:
- `_js/critical.js`
This is automatically compiled into the partial `_includes/2017/critical/critical.js`. Keep this bundle as small as possible.

View File

@ -1,9 +1,11 @@
FROM ruby:2.5.1-alpine3.7
RUN apk update && apk add --no-cache nodejs build-base
RUN apk add yarn --no-cache --repository http://dl-3.alpinelinux.org/alpine/v3.8/community/ --allow-untrusted
FROM ruby:2.7.1
RUN curl -sL https://deb.nodesource.com/setup_12.x | bash -
RUN curl -sS https://dl.yarnpkg.com/debian/pubkey.gpg | apt-key add -
RUN echo "deb https://dl.yarnpkg.com/debian/ stable main" | tee /etc/apt/sources.list.d/yarn.list
RUN apt-get update -qq && apt-get install -qq --no-install-recommends \
nodejs \
yarn \
&& apt-get clean \
&& rm -rf /var/lib/apt/lists/*
RUN mkdir -p /app
WORKDIR /app
# COPY Gemfile Gemfile.lock ./
# RUN bundle install -j 4
# COPY package.json yarn.lock ./
# RUN yarn

View File

@ -1,2 +1,3 @@
source 'https://rubygems.org'
gem 'webrick'
gem 'github-pages', group: :jekyll_plugins

View File

@ -1,216 +1,272 @@
GEM
remote: https://rubygems.org/
specs:
activesupport (4.2.8)
i18n (~> 0.7)
minitest (~> 5.1)
thread_safe (~> 0.3, >= 0.3.4)
tzinfo (~> 1.1)
addressable (2.5.2)
public_suffix (>= 2.0.2, < 4.0)
activesupport (7.1.0)
base64
bigdecimal
concurrent-ruby (~> 1.0, >= 1.0.2)
connection_pool (>= 2.2.5)
drb
i18n (>= 1.6, < 2)
minitest (>= 5.1)
mutex_m
tzinfo (~> 2.0)
addressable (2.8.5)
public_suffix (>= 2.0.2, < 6.0)
base64 (0.1.1)
bigdecimal (3.1.4)
coffee-script (2.4.1)
coffee-script-source
execjs
coffee-script-source (1.12.2)
coffee-script-source (1.11.1)
colorator (1.1.0)
ethon (0.10.1)
ffi (>= 1.3.0)
execjs (2.7.0)
faraday (0.13.1)
multipart-post (>= 1.2, < 3)
ffi (1.9.18)
commonmarker (0.23.10)
concurrent-ruby (1.2.2)
connection_pool (2.4.1)
dnsruby (1.70.0)
simpleidn (~> 0.2.1)
drb (2.1.1)
ruby2_keywords
em-websocket (0.5.3)
eventmachine (>= 0.12.9)
http_parser.rb (~> 0)
ethon (0.16.0)
ffi (>= 1.15.0)
eventmachine (1.2.7)
execjs (2.9.1)
faraday (2.7.11)
base64
faraday-net_http (>= 2.0, < 3.1)
ruby2_keywords (>= 0.0.4)
faraday-net_http (3.0.2)
ffi (1.16.3)
forwardable-extended (2.6.0)
gemoji (3.0.0)
github-pages (156)
activesupport (= 4.2.8)
github-pages-health-check (= 1.3.5)
jekyll (= 3.5.2)
jekyll-avatar (= 0.4.2)
jekyll-coffeescript (= 1.0.1)
gemoji (3.0.1)
github-pages (228)
github-pages-health-check (= 1.17.9)
jekyll (= 3.9.3)
jekyll-avatar (= 0.7.0)
jekyll-coffeescript (= 1.1.1)
jekyll-commonmark-ghpages (= 0.4.0)
jekyll-default-layout (= 0.1.4)
jekyll-feed (= 0.9.2)
jekyll-gist (= 1.4.1)
jekyll-github-metadata (= 2.8.0)
jekyll-mentions (= 1.2.0)
jekyll-optional-front-matter (= 0.2.0)
jekyll-feed (= 0.15.1)
jekyll-gist (= 1.5.0)
jekyll-github-metadata (= 2.13.0)
jekyll-include-cache (= 0.2.1)
jekyll-mentions (= 1.6.0)
jekyll-optional-front-matter (= 0.3.2)
jekyll-paginate (= 1.1.0)
jekyll-readme-index (= 0.1.0)
jekyll-redirect-from (= 0.12.1)
jekyll-relative-links (= 0.4.1)
jekyll-sass-converter (= 1.5.0)
jekyll-seo-tag (= 2.3.0)
jekyll-sitemap (= 1.0.0)
jekyll-swiss (= 0.4.0)
jekyll-theme-architect (= 0.1.0)
jekyll-theme-cayman (= 0.1.0)
jekyll-theme-dinky (= 0.1.0)
jekyll-theme-hacker (= 0.1.0)
jekyll-theme-leap-day (= 0.1.0)
jekyll-theme-merlot (= 0.1.0)
jekyll-theme-midnight (= 0.1.0)
jekyll-theme-minimal (= 0.1.0)
jekyll-theme-modernist (= 0.1.0)
jekyll-theme-primer (= 0.5.0)
jekyll-theme-slate (= 0.1.0)
jekyll-theme-tactile (= 0.1.0)
jekyll-theme-time-machine (= 0.1.0)
jekyll-titles-from-headings (= 0.4.0)
jemoji (= 0.8.0)
kramdown (= 1.13.2)
liquid (= 4.0.0)
listen (= 3.0.6)
jekyll-readme-index (= 0.3.0)
jekyll-redirect-from (= 0.16.0)
jekyll-relative-links (= 0.6.1)
jekyll-remote-theme (= 0.4.3)
jekyll-sass-converter (= 1.5.2)
jekyll-seo-tag (= 2.8.0)
jekyll-sitemap (= 1.4.0)
jekyll-swiss (= 1.0.0)
jekyll-theme-architect (= 0.2.0)
jekyll-theme-cayman (= 0.2.0)
jekyll-theme-dinky (= 0.2.0)
jekyll-theme-hacker (= 0.2.0)
jekyll-theme-leap-day (= 0.2.0)
jekyll-theme-merlot (= 0.2.0)
jekyll-theme-midnight (= 0.2.0)
jekyll-theme-minimal (= 0.2.0)
jekyll-theme-modernist (= 0.2.0)
jekyll-theme-primer (= 0.6.0)
jekyll-theme-slate (= 0.2.0)
jekyll-theme-tactile (= 0.2.0)
jekyll-theme-time-machine (= 0.2.0)
jekyll-titles-from-headings (= 0.5.3)
jemoji (= 0.12.0)
kramdown (= 2.3.2)
kramdown-parser-gfm (= 1.1.0)
liquid (= 4.0.4)
mercenary (~> 0.3)
minima (= 2.1.1)
rouge (= 1.11.1)
minima (= 2.5.1)
nokogiri (>= 1.13.6, < 2.0)
rouge (= 3.26.0)
terminal-table (~> 1.4)
github-pages-health-check (1.3.5)
github-pages-health-check (1.17.9)
addressable (~> 2.3)
net-dns (~> 0.8)
dnsruby (~> 1.60)
octokit (~> 4.0)
public_suffix (~> 2.0)
typhoeus (~> 0.7)
html-pipeline (2.7.0)
public_suffix (>= 3.0, < 5.0)
typhoeus (~> 1.3)
html-pipeline (2.14.3)
activesupport (>= 2)
nokogiri (>= 1.4)
i18n (0.8.6)
jekyll (3.5.2)
http_parser.rb (0.8.0)
i18n (1.14.1)
concurrent-ruby (~> 1.0)
jekyll (3.9.3)
addressable (~> 2.4)
colorator (~> 1.0)
em-websocket (~> 0.5)
i18n (>= 0.7, < 2)
jekyll-sass-converter (~> 1.0)
jekyll-watch (~> 1.1)
kramdown (~> 1.3)
jekyll-watch (~> 2.0)
kramdown (>= 1.17, < 3)
liquid (~> 4.0)
mercenary (~> 0.3.3)
pathutil (~> 0.9)
rouge (~> 1.7)
rouge (>= 1.7, < 4)
safe_yaml (~> 1.0)
jekyll-avatar (0.4.2)
jekyll (~> 3.0)
jekyll-coffeescript (1.0.1)
jekyll-avatar (0.7.0)
jekyll (>= 3.0, < 5.0)
jekyll-coffeescript (1.1.1)
coffee-script (~> 2.2)
coffee-script-source (~> 1.11.1)
jekyll-commonmark (1.4.0)
commonmarker (~> 0.22)
jekyll-commonmark-ghpages (0.4.0)
commonmarker (~> 0.23.7)
jekyll (~> 3.9.0)
jekyll-commonmark (~> 1.4.0)
rouge (>= 2.0, < 5.0)
jekyll-default-layout (0.1.4)
jekyll (~> 3.0)
jekyll-feed (0.9.2)
jekyll (~> 3.3)
jekyll-gist (1.4.1)
jekyll-feed (0.15.1)
jekyll (>= 3.7, < 5.0)
jekyll-gist (1.5.0)
octokit (~> 4.2)
jekyll-github-metadata (2.8.0)
jekyll (~> 3.1)
jekyll-github-metadata (2.13.0)
jekyll (>= 3.4, < 5.0)
octokit (~> 4.0, != 4.4.0)
jekyll-mentions (1.2.0)
activesupport (~> 4.0)
jekyll-include-cache (0.2.1)
jekyll (>= 3.7, < 5.0)
jekyll-mentions (1.6.0)
html-pipeline (~> 2.3)
jekyll (~> 3.0)
jekyll-optional-front-matter (0.2.0)
jekyll (~> 3.0)
jekyll (>= 3.7, < 5.0)
jekyll-optional-front-matter (0.3.2)
jekyll (>= 3.0, < 5.0)
jekyll-paginate (1.1.0)
jekyll-readme-index (0.1.0)
jekyll (~> 3.0)
jekyll-redirect-from (0.12.1)
jekyll (~> 3.3)
jekyll-relative-links (0.4.1)
jekyll (~> 3.3)
jekyll-sass-converter (1.5.0)
jekyll-readme-index (0.3.0)
jekyll (>= 3.0, < 5.0)
jekyll-redirect-from (0.16.0)
jekyll (>= 3.3, < 5.0)
jekyll-relative-links (0.6.1)
jekyll (>= 3.3, < 5.0)
jekyll-remote-theme (0.4.3)
addressable (~> 2.0)
jekyll (>= 3.5, < 5.0)
jekyll-sass-converter (>= 1.0, <= 3.0.0, != 2.0.0)
rubyzip (>= 1.3.0, < 3.0)
jekyll-sass-converter (1.5.2)
sass (~> 3.4)
jekyll-seo-tag (2.3.0)
jekyll (~> 3.3)
jekyll-sitemap (1.0.0)
jekyll (~> 3.3)
jekyll-swiss (0.4.0)
jekyll-theme-architect (0.1.0)
jekyll (~> 3.5)
jekyll-seo-tag (2.8.0)
jekyll (>= 3.8, < 5.0)
jekyll-sitemap (1.4.0)
jekyll (>= 3.7, < 5.0)
jekyll-swiss (1.0.0)
jekyll-theme-architect (0.2.0)
jekyll (> 3.5, < 5.0)
jekyll-seo-tag (~> 2.0)
jekyll-theme-cayman (0.1.0)
jekyll (~> 3.5)
jekyll-theme-cayman (0.2.0)
jekyll (> 3.5, < 5.0)
jekyll-seo-tag (~> 2.0)
jekyll-theme-dinky (0.1.0)
jekyll (~> 3.5)
jekyll-theme-dinky (0.2.0)
jekyll (> 3.5, < 5.0)
jekyll-seo-tag (~> 2.0)
jekyll-theme-hacker (0.1.0)
jekyll (~> 3.5)
jekyll-theme-hacker (0.2.0)
jekyll (> 3.5, < 5.0)
jekyll-seo-tag (~> 2.0)
jekyll-theme-leap-day (0.1.0)
jekyll (~> 3.5)
jekyll-theme-leap-day (0.2.0)
jekyll (> 3.5, < 5.0)
jekyll-seo-tag (~> 2.0)
jekyll-theme-merlot (0.1.0)
jekyll (~> 3.5)
jekyll-theme-merlot (0.2.0)
jekyll (> 3.5, < 5.0)
jekyll-seo-tag (~> 2.0)
jekyll-theme-midnight (0.1.0)
jekyll (~> 3.5)
jekyll-theme-midnight (0.2.0)
jekyll (> 3.5, < 5.0)
jekyll-seo-tag (~> 2.0)
jekyll-theme-minimal (0.1.0)
jekyll (~> 3.5)
jekyll-theme-minimal (0.2.0)
jekyll (> 3.5, < 5.0)
jekyll-seo-tag (~> 2.0)
jekyll-theme-modernist (0.1.0)
jekyll (~> 3.5)
jekyll-theme-modernist (0.2.0)
jekyll (> 3.5, < 5.0)
jekyll-seo-tag (~> 2.0)
jekyll-theme-primer (0.5.0)
jekyll (~> 3.5)
jekyll-seo-tag (~> 2.2)
jekyll-theme-slate (0.1.0)
jekyll (~> 3.5)
jekyll-theme-primer (0.6.0)
jekyll (> 3.5, < 5.0)
jekyll-github-metadata (~> 2.9)
jekyll-seo-tag (~> 2.0)
jekyll-theme-tactile (0.1.0)
jekyll (~> 3.5)
jekyll-theme-slate (0.2.0)
jekyll (> 3.5, < 5.0)
jekyll-seo-tag (~> 2.0)
jekyll-theme-time-machine (0.1.0)
jekyll (~> 3.5)
jekyll-theme-tactile (0.2.0)
jekyll (> 3.5, < 5.0)
jekyll-seo-tag (~> 2.0)
jekyll-titles-from-headings (0.4.0)
jekyll (~> 3.3)
jekyll-watch (1.5.0)
listen (~> 3.0, < 3.1)
jemoji (0.8.0)
activesupport (~> 4.0)
jekyll-theme-time-machine (0.2.0)
jekyll (> 3.5, < 5.0)
jekyll-seo-tag (~> 2.0)
jekyll-titles-from-headings (0.5.3)
jekyll (>= 3.3, < 5.0)
jekyll-watch (2.2.1)
listen (~> 3.0)
jemoji (0.12.0)
gemoji (~> 3.0)
html-pipeline (~> 2.2)
jekyll (>= 3.0)
kramdown (1.13.2)
liquid (4.0.0)
listen (3.0.6)
rb-fsevent (>= 0.9.3)
rb-inotify (>= 0.9.7)
jekyll (>= 3.0, < 5.0)
kramdown (2.3.2)
rexml
kramdown-parser-gfm (1.1.0)
kramdown (~> 2.0)
liquid (4.0.4)
listen (3.8.0)
rb-fsevent (~> 0.10, >= 0.10.3)
rb-inotify (~> 0.9, >= 0.9.10)
mercenary (0.3.6)
mini_portile2 (2.2.0)
minima (2.1.1)
jekyll (~> 3.3)
minitest (5.10.3)
multipart-post (2.0.0)
net-dns (0.8.0)
nokogiri (1.8.0)
mini_portile2 (~> 2.2.0)
octokit (4.7.0)
sawyer (~> 0.8.0, >= 0.5.3)
pathutil (0.14.0)
minima (2.5.1)
jekyll (>= 3.5, < 5.0)
jekyll-feed (~> 0.9)
jekyll-seo-tag (~> 2.1)
minitest (5.20.0)
mutex_m (0.1.2)
nokogiri (1.15.4-x86_64-linux)
racc (~> 1.4)
octokit (4.25.1)
faraday (>= 1, < 3)
sawyer (~> 0.9)
pathutil (0.16.2)
forwardable-extended (~> 2.6)
public_suffix (2.0.5)
rb-fsevent (0.10.2)
rb-inotify (0.9.10)
ffi (>= 0.5.0, < 2)
rouge (1.11.1)
safe_yaml (1.0.4)
sass (3.5.1)
public_suffix (4.0.7)
racc (1.7.1)
rb-fsevent (0.11.2)
rb-inotify (0.10.1)
ffi (~> 1.0)
rexml (3.2.6)
rouge (3.26.0)
ruby2_keywords (0.0.5)
rubyzip (2.3.2)
safe_yaml (1.0.5)
sass (3.7.4)
sass-listen (~> 4.0.0)
sass-listen (4.0.0)
rb-fsevent (~> 0.9, >= 0.9.4)
rb-inotify (~> 0.9, >= 0.9.7)
sawyer (0.8.1)
addressable (>= 2.3.5, < 2.6)
faraday (~> 0.8, < 1.0)
sawyer (0.9.2)
addressable (>= 2.3.5)
faraday (>= 0.17.3, < 3)
simpleidn (0.2.1)
unf (~> 0.1.4)
terminal-table (1.8.0)
unicode-display_width (~> 1.1, >= 1.1.1)
thread_safe (0.3.6)
typhoeus (0.8.0)
ethon (>= 0.8.0)
tzinfo (1.2.3)
thread_safe (~> 0.1)
unicode-display_width (1.3.0)
typhoeus (1.4.0)
ethon (>= 0.9.0)
tzinfo (2.0.6)
concurrent-ruby (~> 1.0)
unf (0.1.4)
unf_ext
unf_ext (0.0.8.2)
unicode-display_width (1.8.0)
webrick (1.8.1)
PLATFORMS
ruby
x86_64-linux
DEPENDENCIES
github-pages
webrick
BUNDLED WITH
1.11.2
2.3.3

21
LICENSE Normal file
View File

@ -0,0 +1,21 @@
MIT License
Copyright (c) 2021 Rico Sta. Cruz and contributors
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
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.

View File

@ -2,44 +2,18 @@ npmbin := ./node_modules/.bin
PORT ?= 3000
HOST ?= 127.0.0.1
help:
@echo
@echo Makefile targets
@grep -E '^[a-zA-Z_-]+:.*?## .*$$' Makefile | sort | awk 'BEGIN {FS = ":.*?## "}; {printf "\033[36m%-30s\033[0m %s\n", $$1, $$2}'
@echo
# Builds intermediate files. Needs a _site built first though
update: _site critical
update: _site
# Builds _site
_site:
bundle exec jekyll build --incremental
yarn build
# Builds critical path CSS/JS
critical: _site
node _support/critical.js
# Starts development server
dev:
$(npmbin)/concurrently -k -p command -c "blue,green" \
"make dev-webpack" \
"make dev-jekyll"
dev-webpack:
$(npmbin)/webpack --watch --colors -p
dev-jekyll:
if [ -f _site ]; then \
bundle exec jekyll serve --safe --trace --drafts --watch --incremental --host $(HOST) --port $(PORT); \
else \
bundle exec jekyll serve --safe --trace --drafts --watch --host $(HOST) --port $(PORT); \
fi
test: _site
@test -f _site/vim.html
@test -f _site/react.html
@test -f _site/index.html
@grep "<script src" _site/index.html >/dev/null
@grep "<script src" _site/vim.html >/dev/null
@grep "<script src" _site/react.html >/dev/null
test-warning:
@echo "========="
@echo "If your build failed at this point, it means"
@echo "the site failed to generate. Check the project"
@echo "out locally and try to find out why."
@echo "========="
dev:
yarn dev

View File

@ -1,8 +1,14 @@
# Devhints
<h1 align='center'>Devhints</h1>
> TL;DR for developer documentation - a ridiculous collection of cheatsheets
<blockquote align='center'>
TL;DR for developer documentation - a ridiculous collection of cheatsheets
</blockquote>
[![Status](https://travis-ci.org/rstacruz/cheatsheets.svg?branch=master)](https://travis-ci.org/rstacruz/cheatsheets "See test builds")
<p align='center'>
<a href='https://travis-ci.org/rstacruz/cheatsheets'><img src='https://travis-ci.org/rstacruz/cheatsheets.svg?branch=master' alt='See test builds'></a>
<a href='https://github.com/rstacruz/cheatsheets/actions?query=workflow%3ADeploy'><img src='https://github.com/rstacruz/cheatsheets/workflows/Deploy/badge.svg' alt='GitHub pages deploy status'></a>
<a href='https://app.netlify.com/sites/devhints-cheatsheets/deploys'><img src='https://api.netlify.com/api/v1/badges/c66b2a8b-5147-4243-9bf6-e2143126f6c8/deploy-status' alt='Netlify deploy status'></a>
</p>
<br>
@ -17,3 +23,12 @@
---
See [CONTRIBUTING.md](CONTRIBUTING.md) for developer notes.
[![Open in Gitpod](https://gitpod.io/button/open-in-gitpod.svg)](https://gitpod.io/#https://github.com/rstacruz/cheatsheets)
<h2 align='center'>Similar projects</h1>
- [Command Line Interface Pages](https://github.com/command-line-interface-pages)
- [tldr-pages](https://github.com/tldr-pages/tldr)
- [Cheat](https://github.com/cheat/cheat)
- [Eg](https://github.com/srsudar/eg)

View File

@ -9,21 +9,25 @@ plugins:
- jekyll-github-metadata
exclude:
- Makefile
- README.md
- .babelrc
- .cache
- CNAME
- CONTRIBUTING.md
- cssnano.config.js
- docker_compose.yml
- Dockerfile
- Gemfile
- Gemfile.lock
- CNAME
- vendor
- package.json
- .babelrc
- yarn.lock
- package-lock.json
- webpack.config.js
- Makefile
- node_modules
- Dockerfile
- docker_compose.yml
- package.json
- package-lock.json
- postcss.config.js
- README.md
- vendor
- webpack.config.js
- yarn-error.log
- yarn.lock
# Markdown

View File

@ -1,4 +0,0 @@
enabled: false
token: "653d56e083fec2a9ae1b6c7cde4e5f5f"
title: "Rollbar"
description: "Real-time error monitoring, alerting, and analytics for developers 🚀"

View File

@ -1,2 +1,2 @@
enabled: false
src: //cdn.carbonads.com/carbon.js?zoneid=1673&serve=C6AILKT&placement=ricostacruzcom
enabled: true
src: https://pubsrv.devhints.io/carbon.js?serve=CE7IK5QM&placement=devhintsio

View File

@ -3,12 +3,15 @@ names:
- Analytics
- Ansible
- Apps
- C-like
- CLI
- CSS
- Databases
- Devops
- Elixir
- Git
- HTML
- Java & JVM
- JavaScript
- JavaScript libraries
- Jekyll
@ -16,6 +19,8 @@ names:
- Markup
- macOS
- Node.js
- PHP
- Python
- Rails
- React
- Ruby

View File

@ -1,2 +1,2 @@
enabled: true
token: "c2c8bc62-c275-4c7a-a304-74335c5a1cd0"
# token: "c2c8bc62-c275-4c7a-a304-74335c5a1cd0"

View File

@ -1,3 +1,4 @@
enabled: true
hostname: devhints.io
id: "UA-106902774-1"
id: "G-N7TC6B227L"
# id: "UA-106902774-1"

Binary file not shown.

After

Width:  |  Height:  |  Size: 504 KiB

View File

@ -1,13 +0,0 @@
{% assign pixel_href = 'https://codefund.io/t/l/TOKEN/pixel.png' | replace: 'TOKEN', site.data.berry.token %}
{% assign link_href = 'https://codefund.io/t/c/TOKEN/' | replace: 'TOKEN', site.data.berry.token %}
<aside class='berry-sponsor' data-js-no-preview>
<div class='cs__wrapper'>
<div class='cs__header'>Proudly sponsored by</div>
<a href='{{ link_href }}' class='cs__blurb' target='_blank' rel='noopener'>
<strong>{{ site.data.berry.title }}</strong>
<span>{{ site.data.berry.description }}</span>
</a>
<img class='cs__pixel' src='{{ pixel_href }}' />
</div>
</aside>

View File

@ -1,4 +0,0 @@
<aside class='codefund-sponsor' data-js-no-preview>
<script src='https://codefund.io/scripts/{{ site.data.codefund.token }}/embed.js?template=centered'></script>
<div id='codefund_ad'></div>
</aside>

View File

@ -1 +0,0 @@
!function(e){function n(r){if(t[r])return t[r].exports;var o=t[r]={i:r,l:!1,exports:{}};return e[r].call(o.exports,o,o.exports,n),o.l=!0,o.exports}var t={};n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{configurable:!1,enumerable:!0,get:r})},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,n){return Object.prototype.hasOwnProperty.call(e,n)},n.p="",n(n.s=2)}([function(e,n){function t(e,n){var t=e.matches||e.matchesSelector||e.msMatchesSelector||e.mozMatchesSelector||e.webkitMatchesSelector||e.oMatchesSelector;if(t)return t.call(e,n);if(e.parentNode){for(var r=e.parentNode.querySelectorAll(n),o=r.length;o--;0)if(r[o]===e)return!0;return!1}}e.exports=t},function(e,n,t){function r(e,n){if(n){if(Array.isArray(n))return void o(n,function(n){r(e,n)});if(e.classList){var t=n.split(" ").filter(Boolean);o(t,function(n){e.classList.add(n)})}else e.className+=" "+n}}var o=t(4);e.exports=r},function(e,n,t){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function o(){d||((0,c.default)(document.documentElement,"LoadDone"),d=!0)}var i=t(3),u=r(i),a=t(1),c=r(a),f=t(6),l=r(f),s=document.querySelector("[data-js-main-body]");s&&((0,u.default)(s),(0,c.default)(s,"-wrapified")),(0,l.default)(window,"load",o),setTimeout(o,5e3);var d=void 0},function(e,n,t){"use strict";function r(e){return e&&e.__esModule?e:{default:e}}function o(e){if(Array.isArray(e)){for(var n=0,t=Array(e.length);n<e.length;n++)t[n]=e[n];return t}return Array.from(e)}function i(e){u(e).forEach(function(e){(0,p.findChildren)(e,"[data-js-h3-section-list]").forEach(function(e){a(e)})})}function u(e){return c(e,{tag:"h2",wrapperFn:function(){return(0,p.createDiv)({class:"h2-section"})},bodyFn:function(){return(0,p.createDiv)({class:"body h3-section-list","data-js-h3-section-list":""})}})}function a(e){return c(e,{tag:"h3",wrapperFn:function(){return(0,p.createDiv)({class:"h3-section"})},bodyFn:function(){return(0,p.createDiv)({class:"body"})}})}function c(e,n){function t(e,n,t){var r=i(),o=e.className;o&&(0,d.default)(r,o),(0,p.before)(e,r);var a=u();return o&&(0,d.default)(a,o),(0,p.appendMany)(a,t),n&&r.appendChild(n),r.appendChild(a),r}var r=n.tag,i=n.wrapperFn,u=n.bodyFn,a=e.children[0],c=[];if(a&&!(0,l.default)(a,r)){var f=(0,p.nextUntil)(a,r);c.push(t(a,null,[a].concat(o(f))))}return(0,p.findChildren)(e,r).forEach(function(e){var n=(0,p.nextUntil)(e,r);c.push(t(e,e,n))}),c}Object.defineProperty(n,"__esModule",{value:!0}),n.default=i,n.groupify=c;var f=t(0),l=r(f),s=t(1),d=r(s),p=t(5)},function(e,n){function t(e,n){var t,r,o=e.length;if("number"==typeof o)for(t=0;t<o;t++)n(e[t],t);else{r=0;for(t in e)e.hasOwnProperty(t)&&n(e[t],t,r++)}return e}e.exports=t},function(e,n,t){"use strict";function r(e){if(Array.isArray(e)){for(var n=0,t=Array(e.length);n<e.length;n++)t[n]=e[n];return t}return Array.from(e)}function o(e,n){n.forEach(function(n){e.appendChild(n)})}function i(e,n){return u(e.nextSibling,n,[])}function u(e,n,t){return e?(0,s.default)(e,n)?t:u(e.nextSibling,n,[].concat(r(t),[e])):t}function a(e,n){e.parentNode.insertBefore(n,e)}function c(e,n){return[].slice.call(e.children).filter(function(e){return(0,s.default)(e,n)})}function f(e){var n=document.createElement("div");return Object.keys(e).forEach(function(t){n.setAttribute(t,e[t])}),n}Object.defineProperty(n,"__esModule",{value:!0}),n.appendMany=o,n.nextUntil=i,n.before=a,n.findChildren=c,n.createDiv=f;var l=t(0),s=function(e){return e&&e.__esModule?e:{default:e}}(l)},function(e,n){function t(e,n,t){e.addEventListener?e.addEventListener(n,t):e.attachEvent("on"+n,function(){t.call(e)})}e.exports=t}]);

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@ -1,5 +1,3 @@
<!-- critical js -->
<script>{% include 2017/critical/critical.js %}</script>
<script src='{{base}}/assets/packed/vendor.js?t={{ timestamp }}'></script>
<script src='{{base}}/assets/packed/app.js?t={{ timestamp }}'></script>
{% for lang in page.prism_languages %}<script src='https://cdn.jsdelivr.net/npm/prismjs@1.6.0/components/prism-{{lang}}.min.js'></script>{% endfor %}

View File

@ -3,11 +3,11 @@
<!-- critical css -->
{% if include.critical == 'home'
%}<style id='critical-css'>{% include 2017/critical/home.css %}</style>{%
%}<style id='critical-css'>{% include 2017/critical/critical-home.css %}</style>{%
endif
%}{%
if include.critical == 'sheet'
%}<style id='critical-css'>{% include 2017/critical/sheet.css %}</style>{%
%}<style id='critical-css'>{% include 2017/critical/critical-sheet.css %}</style>{%
endif %}
<!-- allow disabling critical CSS optimization by passing ?nocrit=1 -->

View File

@ -0,0 +1,7 @@
<div class='HeadlinePub' role='complementary'>
<script async src='{{ site.data.carbon.src }}' id="_carbonads_js"></script>
<span class='placeholder -one'></span>
<span class='placeholder -two'></span>
<span class='placeholder -three'></span>
<span class='placeholder -four'></span>
</div>

View File

@ -6,7 +6,7 @@ Params:
{% endcomment %}
<nav class='top-nav' data-js-no-preview role='navigation'>
<div class='container'>
{% unless include.page.noback %}
{% unless include.noback %}
<div class='left'>
<a class='home back-button' href='{{base}}'></a>
</div>

View File

@ -2,7 +2,7 @@
<div class="container">
<p class='blurb'>
<strong><a href="{{ base }}">{{ site.title }}</a></strong> is a collection of cheatsheets I've written over the years.
Suggestions and corrections? <a href='https://github.com/rstacruz/cheatsheets/issues'>Send them in</a>.
Suggestions and corrections? <a href='https://github.com/rstacruz/cheatsheets/issues/907'>Send them in</a>.
<i class='fleuron'></i>
I'm <a href="http://ricostacruz.com">Rico Sta. Cruz</a>.
Check out my <a href="http://ricostacruz.com/til">Today I learned blog</a> for more.

View File

@ -5,18 +5,17 @@
#### Date
| Example | Output |
| --- | --- |
| `YYYY-MM-DD` | `2014-01-01` |
| `dddd, MMMM Do YYYY` | `Friday, May 16th 2014` |
{: .-shortcuts}
| Example | Output |
| ------------------------- | ---------------------- |
| `YYYY-MM-DD` | 2014-01-01 |
| `dddd, MMMM Do YYYY` | Friday, May 16th 2014 |
| `dddd [the] Do [of] MMMM` | Friday the 16th of May |
#### Time
| Example | Output |
| --- | --- |
| `hh:mm a` | `12:30 pm` |
{: .-shortcuts}
| Example | Output |
| --------- | -------- |
| `hh:mm a` | 12:30 pm |
Used by [Moment.js](http://momentjs.com/docs/#/displaying/) and [date-fns/format](https://date-fns.org/v1.28.5/docs/format). Similar to Java [SimpleDateFormat](https://docs.oracle.com/javase/7/docs/api/java/text/SimpleDateFormat.html).
@ -33,7 +32,7 @@ Used by [Moment.js](http://momentjs.com/docs/#/displaying/) and [date-fns/format
| `YYYY` | `2013` | |
| --- | --- | --- |
| `M` | `1`..`12` _(Jan is 1)_ | **Month** |
| `Mo` | `1st`..`31st` | |
| `Mo` | `1st`..`12th` | |
| `MM` | `01`..`12` _(Jan is 1)_ | |
| `MMM` | `Jan` | |
| `MMMM` | `January` | |
@ -86,17 +85,16 @@ Used by [Moment.js](http://momentjs.com/docs/#/displaying/) and [date-fns/format
### Presets
| Example | Output |
| --- | --- |
| `LT` | `8:30 PM` |
| `LTS` | `8:30:25 PM` |
| --- | --- |
| `LL` | `August 2 1985` |
| `ll` | `Aug 2 1985` |
| --- | --- |
| `LLL` | `August 2 1985 08:30 PM` |
| `lll` | `Aug 2 1985 08:30 PM` |
| --- | --- |
| `LLLL` | `Thursday, August 2 1985 08:30 PM` |
| `llll` | `Thu, Aug 2 1985 08:30 PM` |
{: .-shortcuts}
| Example | Output |
| ------- | -------------------------------- |
| `LT` | 8:30 PM |
| `LTS` | 8:30:25 PM |
| --- | --- |
| `LL` | August 2 1985 |
| `ll` | Aug 2 1985 |
| --- | --- |
| `LLL` | August 2 1985 08:30 PM |
| `lll` | Aug 2 1985 08:30 PM |
| --- | --- |
| `LLLL` | Thursday, August 2 1985 08:30 PM |
| `llll` | Thu, Aug 2 1985 08:30 PM |

View File

@ -4,7 +4,7 @@
{% include meta.html %}
{% include polyfills.html %}
<style>html{opacity:0}</style>
<link href="https://ricostacruz.com/til/assets/style.css?t={{ timestamp }}" rel="stylesheet" />
<link rel="stylesheet" href="{{base}}/assets/2015/style.css?t={{ timestamp }}">
<link href="{{base}}/assets/style.css?t={{ timestamp }}" rel="stylesheet" />
<link href="{{base}}/assets/print.css?t={{ timestamp }}" rel="stylesheet" media="print" />
</head>

View File

@ -2,13 +2,13 @@
<meta charset='utf-8'>
<meta content='width=device-width, initial-scale=1.0' name='viewport'>
<link href='{{ base }}/assets/favicon.png' rel='shortcut icon'>
<meta content='{{ page.url }}' name='app:pageurl'>
<meta content='{{ page.url | escape }}' name='app:pageurl'>
{% if meta_title %}
<title>{{ meta_title }}</title>
<meta content='{{ meta_title }}' property='og:title'>
<meta content='{{ meta_title }}' property='twitter:title'>
<meta content='{{ page.og_type | default: "article" }}' property='og:type'>
<title>{{ meta_title | escape }}</title>
<meta content='{{ meta_title | escape }}' property='og:title'>
<meta content='{{ meta_title | escape }}' property='twitter:title'>
<meta content='{{ page.og_type | default: "article" | escape }}' property='og:type'>
{% endif %}
{% if meta_image %}
@ -24,11 +24,11 @@
<meta content="{{ meta_description | escape }}" property="twitter:description">
{% endif %}
<link rel="canonical" href="{{ page_url }}">
<meta name="og:url" content="{{ page_url }}">
<link rel="canonical" href="{{ page_url | escape }}">
<meta name="og:url" content="{{ page_url | escape }}">
{% if page.url == '/' %}
<link rel="prefetch" href="{{ site.url }}">
<link rel="prerender" href="{{ site.url }}">
<link rel="prefetch" href="{{ site.url | escape }}">
<link rel="prerender" href="{{ site.url | escape }}">
{% endif %}
{% if page.author %}
@ -41,15 +41,15 @@
{% endif %}
{% if site.title %}
<meta content='{{ site.title }}' property='og:site_name'>
<meta content='{{ site.title | escape }}' property='og:site_name'>
{% endif %}
{% if site.facebook.app_id %}
<meta content='{{ site.facebook.app_id }}' property='fb:app_id'>
<meta content='{{ site.facebook.app_id | escape }}' property='fb:app_id'>
{% endif %}
{% if site.facebook.admin %}
<meta content='{{ site.facebook.admin }}' property='fb:admins'>
<meta content='{{ site.facebook.admin | escape }}' property='fb:admins'>
{% endif %}
{% if page.date %}
@ -57,12 +57,12 @@
{% endif %}
{% if page.category %}
<meta content='{{ page.category }}' property='article:section'>
<meta content='{{ page.category | escape }}' property='article:section'>
{% endif %}
{% if page.tags %}
{% for tag in page.tags %}
<meta content='{{ tag }}' property='article:tag'>
<meta content='{{ tag | escape }}' property='article:tag'>
{% endfor %}
{% endif %}

View File

@ -1,7 +0,0 @@
// 3rd party libs
window.Prism = require('prismjs')
// All the others
function requireAll (r) { r.keys().forEach(r) }
requireAll(require.context('./initializers/', true, /\.js$/))
requireAll(require.context('./behaviors/', true, /\.js$/))

View File

@ -1,21 +0,0 @@
/* eslint-env jest */
import qs from '../qs'
describe('qs()', () => {
test('basic', run({
input: '?preview=1',
output: { preview: '1' }
}))
test('two fragments', run({
input: '?a=1&b=2',
output: { a: '1', b: '2' }
}))
function run ({ input, output }) {
return function () {
const result = qs(input)
expect(result).toEqual(output)
}
}
})

View File

@ -1,40 +0,0 @@
import { splitwords } from './permutate'
import qsa from 'dom101/query-selector-all'
/**
* Show everything.
*
* @example
* Search.showAll()
*/
export function showAll () {
qsa('[data-search-index]').forEach(el => {
el.removeAttribute('aria-hidden')
})
}
/**
* Search for a given keyword.
*
* @example
* Search.show('hello')
*/
export function show (val) {
const keywords = splitwords(val)
if (!keywords.length) return showAll()
const selectors = keywords
.map(k => `[data-search-index~=${JSON.stringify(k)}]`)
.join('')
qsa('[data-search-index]').forEach(el => {
el.setAttribute('aria-hidden', true)
})
qsa(selectors).forEach(el => {
el.removeAttribute('aria-hidden')
})
}

View File

@ -1,63 +0,0 @@
/* eslint-env jest */
import wrapify from '../index'
import $ from 'jquery'
it('simple usage', run(`
<div>
<h2>simple usage<h2>
<h3>install</h3>
<p>(install)</p>
<h3>usage</h3>
<p>(usage)</p>
</div>
`, $div => {
expect($div.find('.h2-section .h3-section-list .h3-section').length).toEqual(2)
}))
it('h3 with class', run(`
<div>
<h3 class='-hello'>install</h3>
<p>(install)</p>
</div>
`, $div => {
expect($div.find('div.h3-section.-hello').length).toEqual(1)
expect($div.find('div.h3-section-list.-hello').length).toEqual(1)
}))
it('multiple h2s', run(`
<div>
<h2>multiple h2<h2>
<h3>install</h3>
<p>(install)</p>
<h3>usage</h3>
<p>(usage)</p>
<h2>getting started<h2>
<h3>first</h3>
<p>(first)</p>
<h3>second</h3>
<p>(second)</p>
</div>
`))
function run (input, fn) {
return function () {
const $div = $(input)
wrapify($div[0])
expect($div[0]).toMatchSnapshot()
if (fn) fn($div)
}
}
it('h2 + pre', run(`
<div>
<h2>heading</h2>
<pre class='language-markdown'>(code)</pre>
</div>
`))

View File

@ -10,16 +10,10 @@
%}
{% include 2017/head.html critical='home' %}
</head><body>
</head><body class='UseCompactHeader HighlightPubFirstLine'>
{% include 2017/top-nav.html page=page is_home=true noedit=true noback=true %}
{% if site.data.carbon.enabled %}
<div class='SideAd' role='complementary'>
<script async src='{{ site.data.carbon.src }}' id="_carbonads_js"></script>
</div>
{% endif %}
<div class='body-area -slim'>
<div class='site-header' role='banner'>
<h1>
@ -31,16 +25,10 @@
{% include 2017/search-form.html live=true %}
{% if site.data.berry.enabled %}
<div class='adbox' role='complementary'>
{% include 2017/berry-sponsor.html %}
</div>
{% endif %}
{% if site.data.codefund.enabled %}
<div class='adbox' role='complementary'>
{% include 2017/codefund.html %}
</div>
{% if site.data.carbon.enabled %}
<div class='pubbox'>
{% include 2017/headline-pub.html %}
</div>
{% endif %}
</div>
@ -77,7 +65,7 @@
<div class='message item missing-message'>
<h3>See something missing?</h3>
<p>
<a class='push-button' href='{{ site.github.repository_url }}/issues/new?title=Cheatsheet%20request:%20APP_NAME_HERE'>Request cheatsheet</a>
<a class='push-button' href='{{ site.github.repository_url }}/issues/907'>Request cheatsheet</a>
</p>
</div>
</div>

View File

@ -4,7 +4,7 @@
{% include 2017/head.html critical='sheet' %}
{% include 2017/article-schema.html page=page %}
</head><body>
</head><body class='UseCompactHeader HighlightPubFirstLine'>
{% include 2017/top-nav.html page=page %}
@ -12,23 +12,9 @@
<header class='main-heading -center' role='banner'>
<h1 class='h1'>{{ page.title }} <em>{{ site.data.content.sheet.suffix }}</em></h1>
<div class='adbox' data-js-no-preview>
{% if site.data.berry.enabled %}
<div class='ad -berry' role='complementary'>
{% include 2017/berry-sponsor.html %}
</div>
{% endif %}
{% if site.data.codefund.enabled %}
<div class='ad -codefund' role='complementary'>
{% include 2017/codefund.html %}
</div>
{% endif %}
<div class='pubbox' data-js-no-preview>
{% if site.data.carbon.enabled %}
<div class='HeadlineAd ad -carbon' role='complementary'>
<script async src='{{ site.data.carbon.src }}' id="_carbonads_js"></script>
</div>
{% include 2017/headline-pub.html %}
{% endif %}
</div>
</header>

View File

@ -14,7 +14,7 @@ type: article
</div>
{% if site.data.carbon.enabled %}
<div class='headline-ad'>
<div class='headline-pub'>
<script async src='{{ site.data.carbon.src }}' id="_carbonads_js"></script>
</div>
{% endif %}

View File

@ -11,7 +11,10 @@ type: article
<div class='post-headline -cheatsheet'>
<p class='prelude'><span></span></p>
<h1><span>{{ page.title }}</span></h1>
{% include social-list.html page=page %}
<div class='pubbox'>
{% include 2017/headline-pub.html %}
</div>
</div>
<div class='post-content -cheatsheet'>

3
_parcel/_base.scss Normal file
View File

@ -0,0 +1,3 @@
// Base
@import '../_sass/2017/base/base.scss';
@import '../_sass/2017/base/fade.scss';

11
_parcel/_utils.scss Normal file
View File

@ -0,0 +1,11 @@
// Vendor
@import '../node_modules/modularscale-sass/stylesheets/_modularscale.scss';
@import '../_sass/2017/variables.scss';
@import '../_sass/vendor/ionicons-inline/ionicons.scss';
// Utilities
@import '../_sass/2017/utils/_font-size.scss';
@import '../_sass/2017/utils/gutter.scss';
@import '../_sass/2017/utils/heading-style.scss';
@import '../_sass/2017/utils/section-gutter.scss';
@import '../_sass/2017/utils/section-with-container.scss';

30
_parcel/app.js Normal file
View File

@ -0,0 +1,30 @@
// Prismjs
import 'prismjs'
import 'prismjs/plugins/line-highlight/prism-line-highlight.min.js'
import 'prismjs/components/prism-jsx.min.js'
import 'prismjs/components/prism-bash.min.js'
import 'prismjs/components/prism-scss.min.js'
import 'prismjs/components/prism-css.min.js'
import 'prismjs/components/prism-elixir.min.js'
import 'prismjs/components/prism-ruby.min.js'
// Initializers
import './initializers/prism'
import './initializers/onmount'
// Behaviors
import './behaviors/anchors'
import './behaviors/dismissable'
import './behaviors/dismiss'
import './behaviors/disqus'
import './behaviors/h3-section-list'
import './behaviors/main-body'
import './behaviors/no-preview'
import './behaviors/searchable-header'
import './behaviors/searchable-item'
import './behaviors/search-form'
import './behaviors/search-input'
// CSS
import 'prismjs/plugins/line-highlight/prism-line-highlight.css'
import 'hint.css/hint.min.css'

View File

@ -9,7 +9,7 @@ const DEFAULTS = {
// text of anchor
text: '#',
// append before or after innerText?
shouldAppend: false,
shouldAppend: false
}
/*
@ -19,7 +19,9 @@ const DEFAULTS = {
onmount('[data-js-anchors]', function () {
const data = JSON.parse(this.getAttribute('data-js-anchors') || '{}')
const rules = Array.isArray(data)
? (data.length ? data : [DEFAULTS])
? data.length
? data
: [DEFAULTS]
: [Object.assign({}, DEFAULTS, data)]
for (const { rule, className, text, shouldAppend } of rules) {

View File

@ -14,7 +14,7 @@ onmount('[data-js-dismiss]', function () {
const dismissable = getData(parent, 'js-dismissable')
const id = (dismissable && dismissable.id) || ''
on(this, 'click', e => {
on(this, 'click', (e) => {
Dismiss.setDismissed(id)
e.preventDefault()
if (parent) remove(parent)

View File

@ -1,6 +1,6 @@
/* eslint-disable no-new */
import Isotope from 'isotope-layout/dist/isotope.pkgd.js'
import Isotope from 'isotope-layout'
import onmount from 'onmount'
import on from 'dom101/on'
import qsa from 'dom101/query-selector-all'
@ -17,7 +17,7 @@ onmount('[data-js-h3-section-list]', function () {
const images = qsa('img', this)
images.forEach(image => {
images.forEach((image) => {
on(image, 'load', () => {
iso.layout()
})

View File

@ -6,10 +6,10 @@ import on from 'dom101/on'
*/
onmount('[data-js-search-form]', function () {
on(this, 'submit', e => {
on(this, 'submit', (e) => {
e.preventDefault()
const link = document.querySelector('a[data-search-index]:visible')
const link = document.querySelector('a[data-search-index]:not([hidden])')
const href = link && link.getAttribute('href')
if (href) window.location = href

View File

@ -17,6 +17,8 @@ onmount('[data-js-search-input]', function () {
const query = (qs(window.location.search) || {}).q
if (query && query.length) {
this.value = query
setTimeout(() => { Search.show(query) })
setTimeout(() => {
Search.show(query)
})
}
})

View File

@ -10,11 +10,12 @@ import './searchable-item'
*/
onmount('[data-js-searchable-header]', function () {
const els = nextUntil(this, '[data-js-searchable-header]')
.filter(el => matches(el, '[data-search-index]'))
const els = nextUntil(this, '[data-js-searchable-header]').filter((el) =>
matches(el, '[data-search-index]')
)
const keywords = els
.map(n => n.getAttribute('data-search-index'))
.map((n) => n.getAttribute('data-search-index'))
.join(' ')
.split(' ')

2
_parcel/critical-home.js Normal file
View File

@ -0,0 +1,2 @@
import 'sanitize.css'
import './critical-home.scss'

View File

@ -0,0 +1,16 @@
@import './_utils.scss';
@import './_base.scss';
// Components
@import '../_sass/2017/components/attribute-peg.scss';
@import '../_sass/2017/components/announcements-item.scss';
@import '../_sass/2017/components/announcements-list.scss';
@import '../_sass/2017/components/back-button.scss';
@import '../_sass/2017/components/body-area.scss';
@import '../_sass/2017/components/headline-pub.scss';
@import '../_sass/2017/components/page-actions.scss';
@import '../_sass/2017/components/pages-list.scss';
@import '../_sass/2017/components/search-box.scss';
@import '../_sass/2017/components/site-header.scss';
@import '../_sass/2017/components/top-nav.scss';
@import '../_sass/2017/components/top-sheet.scss';

View File

@ -0,0 +1,2 @@
import 'sanitize.css'
import './critical-sheet.scss'

View File

@ -0,0 +1,21 @@
@import './_utils.scss';
@import './_base.scss';
// Markdown
@import '../_sass/2017/markdown/a-em.scss';
@import '../_sass/2017/markdown/code.scss';
@import '../_sass/2017/markdown/headings.scss';
@import '../_sass/2017/markdown/local-anchor.scss';
@import '../_sass/2017/markdown/p.scss';
@import '../_sass/2017/markdown/table.scss';
@import '../_sass/2017/markdown/ul.scss';
// Components
@import '../_sass/2017/components/back-button.scss';
@import '../_sass/2017/components/body-area.scss';
@import '../_sass/2017/components/h3-section.scss';
@import '../_sass/2017/components/h3-section-list.scss';
@import '../_sass/2017/components/headline-pub.scss';
@import '../_sass/2017/components/main-heading.scss';
@import '../_sass/2017/components/page-actions.scss';
@import '../_sass/2017/components/top-nav.scss';

View File

@ -20,7 +20,7 @@ on(window, 'load', done)
setTimeout(done, 5000)
let isDone
function done () {
function done() {
if (isDone) return
addClass(document.documentElement, 'LoadDone')
isDone = true

View File

@ -2,7 +2,7 @@
* Stores and retrieves data from an element. Works like jQuery.data().
*/
export function data (el, key, val) {
export function data(el, key, val) {
if (typeof val !== 'undefined') {
return getData(el, key)
} else {
@ -10,11 +10,11 @@ export function data (el, key, val) {
}
}
export function getData (el, key) {
export function getData(el, key) {
const str = el.getAttribute('data-' + key)
return JSON.parse(str || '{}')
}
export function setData (el, key, val) {
export function setData(el, key, val) {
el.setAttribute('data-' + key, JSON.stringify(val))
}

View File

@ -7,7 +7,7 @@ import * as Store from './store'
* setDismissed('2017-09-02-happy-birthday')
*/
export function setDismissed (id) {
export function setDismissed(id) {
Store.update('dismissed', function (data) {
data[id] = true
return data
@ -22,7 +22,7 @@ export function setDismissed (id) {
* isDismissed('2017-09-02-happy-birthday') => true
*/
export function isDismissed (id) {
export function isDismissed(id) {
const data = Store.fetch('dismissed')
return data && data[id]
}

View File

@ -4,33 +4,35 @@ import matches from 'dom101/matches'
* Just like jQuery.append
*/
export function appendMany (el, children) {
children.forEach(child => { el.appendChild(child) })
export function appendMany(el, children) {
children.forEach((child) => {
el.appendChild(child)
})
}
/*
* Just like jQuery.nextUntil
*/
export function nextUntil (el, selector) {
export function nextUntil(el, selector) {
const nextEl = el.nextSibling
return nextUntilTick(nextEl, selector, [])
}
function nextUntilTick (el, selector, acc) {
function nextUntilTick(el, selector, acc) {
if (!el) return acc
const isMatch = matches(el, selector)
if (isMatch) return acc
return nextUntilTick(el.nextSibling, selector, [ ...acc, el ])
return nextUntilTick(el.nextSibling, selector, [...acc, el])
}
/*
* Just like jQuery.before
*/
export function before (reference, newNode) {
export function before(reference, newNode) {
reference.parentNode.insertBefore(newNode, reference)
}
@ -38,9 +40,8 @@ export function before (reference, newNode) {
* Like jQuery.children('selector')
*/
export function findChildren (el, selector) {
return [].slice.call(el.children)
.filter(child => matches(child, selector))
export function findChildren(el, selector) {
return [].slice.call(el.children).filter((child) => matches(child, selector))
}
/**
@ -52,9 +53,9 @@ export function findChildren (el, selector) {
* createDiv({ class: 'foo' })
*/
export function createDiv (props) {
export function createDiv(props) {
const d = document.createElement('div')
Object.keys(props).forEach(key => {
Object.keys(props).forEach((key) => {
d.setAttribute(key, props[key])
})
return d

View File

@ -5,12 +5,12 @@
* inject('devhints.disqus.com')
*/
export default function inject (host) {
export default function inject(host) {
injectEmbed(host)
injectCount(host)
}
export function injectEmbed (host) {
export function injectEmbed(host) {
const d = document
const s = d.createElement('script')
s.src = `https://${host}/embed.js`
@ -18,7 +18,7 @@ export function injectEmbed (host) {
;(d.head || d.body).appendChild(s)
}
export function injectCount (host) {
export function injectCount(host) {
const d = document
const s = d.createElement('script')
s.src = `https://${host}/count.js`

View File

@ -7,7 +7,7 @@
* })
*/
export default function permutate (data) {
export default function permutate(data) {
let words = []
if (data.slug) {
words = words.concat(permutateString(data.slug))
@ -26,11 +26,11 @@ export default function permutate (data) {
* => ['h', 'hi', 'j', 'jo', 'joe']
*/
export function permutateString (str) {
export function permutateString(str) {
let words = []
let inputs = splitwords(str)
inputs.forEach(word => {
inputs.forEach((word) => {
words = words.concat(permutateWord(word))
})
@ -45,7 +45,7 @@ export function permutateString (str) {
* => ['h', 'he', 'hel', 'hell', 'hello']
*/
export function permutateWord (str) {
export function permutateWord(str) {
let words = []
const len = str.length
for (var i = 1; i <= len; ++i) {
@ -62,10 +62,11 @@ export function permutateWord (str) {
* => ['hello', 'world']
*/
export function splitwords (str) {
const words = str.toLowerCase()
export function splitwords(str) {
const words = str
.toLowerCase()
.split(/[ /\-_]/)
.filter(k => k && k.length !== 0)
.filter((k) => k && k.length !== 0)
return words
}

View File

@ -2,6 +2,6 @@
* Checks if we're in preview mode (?preview=1).
*/
export function isPreview () {
export function isPreview() {
return window.location.search.indexOf('preview=1') !== -1
}

View File

@ -2,16 +2,16 @@
* Helper: minimal qs implementation
*/
export default function qs (search) {
export default function qs(search) {
search = search.substr(1)
const parts = search.split('&').map(p => p.split('='))
const parts = search.split('&').map((p) => p.split('='))
return parts.reduce((result, part) => {
result[part[0]] = qsdecode(part[1])
return result
}, {})
}
export function qsdecode (string) {
export function qsdecode(string) {
if (!string) string = ''
string = string.replace(/\+/g, ' ')
return string

43
_parcel/helpers/search.js Normal file
View File

@ -0,0 +1,43 @@
import { splitwords } from './permutate'
import qsa from 'dom101/query-selector-all'
/**
* Show everything.
*
* @example
* Search.showAll()
*/
export function showAll() {
qsa('[data-search-index]').forEach((el) => {
el.removeAttribute('hidden')
el.style.removeProperty('display')
})
}
/**
* Search for a given keyword.
*
* @example
* Search.show('hello')
*/
export function show(val) {
const keywords = splitwords(val)
if (!keywords.length) return showAll()
const selectors = keywords
.map((k) => `[data-search-index~=${JSON.stringify(k)}]`)
.join('')
qsa('[data-search-index]').forEach((el) => {
el.setAttribute('hidden', true)
el.style.setProperty('display', "none")
})
qsa(selectors).forEach((el) => {
el.removeAttribute('hidden')
el.style.removeProperty('display')
})
}

View File

@ -9,7 +9,7 @@
* })
*/
export function update (key, fn) {
export function update(key, fn) {
if (!window.localStorage) return
let data = JSON.parse(window.localStorage[key] || '{}')
data = fn(data)
@ -23,7 +23,7 @@ export function update (key, fn) {
* const data = fetch('dismissed')
*/
export function fetch (key) {
export function fetch(key) {
if (!window.localStorage) return
return JSON.parse(window.localStorage[key] || '{}')
}

View File

@ -6,5 +6,7 @@ import onmount from 'onmount'
*/
ready(() => {
setTimeout(() => { onmount() })
setTimeout(() => {
onmount()
})
})

View File

@ -0,0 +1 @@
window.Prism = require('prismjs')

View File

@ -0,0 +1,88 @@
/* eslint-env jest */
import wrapify from '../index'
it(
'simple usage',
run(
`
<div>
<h2>simple usage<h2>
<h3>install</h3>
<p>(install)</p>
<h3>usage</h3>
<p>(usage)</p>
</div>
`,
(root) => {
expect(
root.querySelectorAll('.h2-section .h3-section-list .h3-section').length
).toEqual(2)
}
)
)
it(
'h3 with class',
run(
`
<div>
<h3 class='-hello'>install</h3>
<p>(install)</p>
</div>
`,
(root) => {
expect(root.querySelectorAll('div.h3-section.-hello').length).toEqual(1)
expect(
root.querySelectorAll('div.h3-section-list.-hello').length
).toEqual(1)
}
)
)
it(
'multiple h2s',
run(`
<div>
<h2>multiple h2<h2>
<h3>install</h3>
<p>(install)</p>
<h3>usage</h3>
<p>(usage)</p>
<h2>getting started<h2>
<h3>first</h3>
<p>(first)</p>
<h3>second</h3>
<p>(second)</p>
</div>
`)
)
function run(input, fn) {
return function () {
const div = document.createElement('div')
div.innerHTML = input
const root = div.children[0]
wrapify(root)
expect(root).toMatchSnapshot()
if (fn) fn(root)
}
}
it(
'h2 + pre',
run(`
<div>
<h2>heading</h2>
<pre class='language-markdown'>(code)</pre>
</div>
`)
)

View File

@ -1,6 +1,12 @@
import matches from 'dom101/matches'
import addClass from 'dom101/add-class'
import { appendMany, nextUntil, before, findChildren, createDiv } from '../helpers/dom'
import {
appendMany,
nextUntil,
before,
findChildren,
createDiv
} from '../helpers/dom'
/**
* Wraps h2 sections into h2-section.
@ -9,14 +15,16 @@ import { appendMany, nextUntil, before, findChildren, createDiv } from '../helpe
* @private
*/
export default function wrapify (root) {
export default function wrapify(root) {
// These are your H2 sections. Returns a list of .h2-section nodes.
const sections = wrapifyH2(root)
// For each h2 section, wrap the H3's in them
sections.forEach(section => {
sections.forEach((section) => {
const bodies = findChildren(section, '[data-js-h3-section-list]')
bodies.forEach(body => { wrapifyH3(body) })
bodies.forEach((body) => {
wrapifyH3(body)
})
})
}
@ -33,14 +41,15 @@ export default function wrapify (root) {
* @private
*/
function wrapifyH2 (root) {
function wrapifyH2(root) {
return groupify(root, {
tag: 'h2',
wrapperFn: () => createDiv({ class: 'h2-section' }),
bodyFn: () => createDiv({
class: 'body h3-section-list',
'data-js-h3-section-list': ''
})
bodyFn: () =>
createDiv({
class: 'body h3-section-list',
'data-js-h3-section-list': ''
})
})
}
@ -57,7 +66,7 @@ function wrapifyH2 (root) {
* @private
*/
function wrapifyH3 (root) {
function wrapifyH3(root) {
return groupify(root, {
tag: 'h3',
wrapperFn: () => createDiv({ class: 'h3-section' }),
@ -71,27 +80,27 @@ function wrapifyH3 (root) {
* @private
*/
export function groupify (el, { tag, wrapperFn, bodyFn }) {
export function groupify(el, { tag, wrapperFn, bodyFn }) {
const first = el.children[0]
let result = []
// Handle the markup before the first h2
if (first && !matches(first, tag)) {
const sibs = nextUntil(first, tag)
result.push(wrap(first, null, [ first, ...sibs ]))
result.push(wrap(first, null, [first, ...sibs]))
}
// Find all h3's inside it
const children = findChildren(el, tag)
children.forEach(child => {
children.forEach((child) => {
const sibs = nextUntil(child, tag)
result.push(wrap(child, child, sibs))
})
return result
function wrap (pivot, first, sibs) {
function wrap(pivot, first, sibs) {
const wrap = wrapperFn()
const pivotClass = pivot.className

427
_sass/2015/base/normalize.scss vendored Normal file
View File

@ -0,0 +1,427 @@
/*! normalize.css v3.0.2 | MIT License | git.io/normalize */
/**
* 1. Set default font family to sans-serif.
* 2. Prevent iOS text size adjust after orientation change, without disabling
* user zoom.
*/
html {
font-family: sans-serif; /* 1 */
-ms-text-size-adjust: 100%; /* 2 */
-webkit-text-size-adjust: 100%; /* 2 */
}
/**
* Remove default margin.
*/
body {
margin: 0;
}
/* HTML5 display definitions
========================================================================== */
/**
* Correct `block` display not defined for any HTML5 element in IE 8/9.
* Correct `block` display not defined for `details` or `summary` in IE 10/11
* and Firefox.
* Correct `block` display not defined for `main` in IE 11.
*/
article,
aside,
details,
figcaption,
figure,
footer,
header,
hgroup,
main,
menu,
nav,
section,
summary {
display: block;
}
/**
* 1. Correct `inline-block` display not defined in IE 8/9.
* 2. Normalize vertical alignment of `progress` in Chrome, Firefox, and Opera.
*/
audio,
canvas,
progress,
video {
display: inline-block; /* 1 */
vertical-align: baseline; /* 2 */
}
/**
* Prevent modern browsers from displaying `audio` without controls.
* Remove excess height in iOS 5 devices.
*/
audio:not([controls]) {
display: none;
height: 0;
}
/**
* Address `[hidden]` styling not present in IE 8/9/10.
* Hide the `template` element in IE 8/9/11, Safari, and Firefox < 22.
*/
[hidden],
template {
display: none;
}
/* Links
========================================================================== */
/**
* Remove the gray background color from active links in IE 10.
*/
a {
background-color: transparent;
}
/**
* Improve readability when focused and also mouse hovered in all browsers.
*/
a:active,
a:hover {
outline: 0;
}
/* Text-level semantics
========================================================================== */
/**
* Address styling not present in IE 8/9/10/11, Safari, and Chrome.
*/
abbr[title] {
border-bottom: 1px dotted;
}
/**
* Address style set to `bolder` in Firefox 4+, Safari, and Chrome.
*/
b,
strong {
font-weight: bold;
}
/**
* Address styling not present in Safari and Chrome.
*/
dfn {
font-style: italic;
}
/**
* Address variable `h1` font-size and margin within `section` and `article`
* contexts in Firefox 4+, Safari, and Chrome.
*/
h1 {
font-size: 2em;
margin: 0.67em 0;
}
/**
* Address styling not present in IE 8/9.
*/
mark {
background: #ff0;
color: #000;
}
/**
* Address inconsistent and variable font size in all browsers.
*/
small {
font-size: 80%;
}
/**
* Prevent `sub` and `sup` affecting `line-height` in all browsers.
*/
sub,
sup {
font-size: 75%;
line-height: 0;
position: relative;
vertical-align: baseline;
}
sup {
top: -0.5em;
}
sub {
bottom: -0.25em;
}
/* Embedded content
========================================================================== */
/**
* Remove border when inside `a` element in IE 8/9/10.
*/
img {
border: 0;
}
/**
* Correct overflow not hidden in IE 9/10/11.
*/
svg:not(:root) {
overflow: hidden;
}
/* Grouping content
========================================================================== */
/**
* Address margin not present in IE 8/9 and Safari.
*/
figure {
margin: 1em 40px;
}
/**
* Address differences between Firefox and other browsers.
*/
hr {
-moz-box-sizing: content-box;
box-sizing: content-box;
height: 0;
}
/**
* Contain overflow in all browsers.
*/
pre {
overflow: auto;
}
/**
* Address odd `em`-unit font size rendering in all browsers.
*/
code,
kbd,
pre,
samp {
font-family: monospace, monospace;
font-size: 1em;
}
/* Forms
========================================================================== */
/**
* Known limitation: by default, Chrome and Safari on OS X allow very limited
* styling of `select`, unless a `border` property is set.
*/
/**
* 1. Correct color not being inherited.
* Known issue: affects color of disabled elements.
* 2. Correct font properties not being inherited.
* 3. Address margins set differently in Firefox 4+, Safari, and Chrome.
*/
button,
input,
optgroup,
select,
textarea {
color: inherit; /* 1 */
font: inherit; /* 2 */
margin: 0; /* 3 */
}
/**
* Address `overflow` set to `hidden` in IE 8/9/10/11.
*/
button {
overflow: visible;
}
/**
* Address inconsistent `text-transform` inheritance for `button` and `select`.
* All other form control elements do not inherit `text-transform` values.
* Correct `button` style inheritance in Firefox, IE 8/9/10/11, and Opera.
* Correct `select` style inheritance in Firefox.
*/
button,
select {
text-transform: none;
}
/**
* 1. Avoid the WebKit bug in Android 4.0.* where (2) destroys native `audio`
* and `video` controls.
* 2. Correct inability to style clickable `input` types in iOS.
* 3. Improve usability and consistency of cursor style between image-type
* `input` and others.
*/
button,
html input[type="button"], /* 1 */
input[type="reset"],
input[type="submit"] {
-webkit-appearance: button; /* 2 */
cursor: pointer; /* 3 */
}
/**
* Re-set default cursor for disabled elements.
*/
button[disabled],
html input[disabled] {
cursor: default;
}
/**
* Remove inner padding and border in Firefox 4+.
*/
button::-moz-focus-inner,
input::-moz-focus-inner {
border: 0;
padding: 0;
}
/**
* Address Firefox 4+ setting `line-height` on `input` using `!important` in
* the UA stylesheet.
*/
input {
line-height: normal;
}
/**
* It's recommended that you don't attempt to style these elements.
* Firefox's implementation doesn't respect box-sizing, padding, or width.
*
* 1. Address box sizing set to `content-box` in IE 8/9/10.
* 2. Remove excess padding in IE 8/9/10.
*/
input[type="checkbox"],
input[type="radio"] {
box-sizing: border-box; /* 1 */
padding: 0; /* 2 */
}
/**
* Fix the cursor style for Chrome's increment/decrement buttons. For certain
* `font-size` values of the `input`, it causes the cursor style of the
* decrement button to change from `default` to `text`.
*/
input[type="number"]::-webkit-inner-spin-button,
input[type="number"]::-webkit-outer-spin-button {
height: auto;
}
/**
* 1. Address `appearance` set to `searchfield` in Safari and Chrome.
* 2. Address `box-sizing` set to `border-box` in Safari and Chrome
* (include `-moz` to future-proof).
*/
input[type="search"] {
-webkit-appearance: textfield; /* 1 */
-moz-box-sizing: content-box;
-webkit-box-sizing: content-box; /* 2 */
box-sizing: content-box;
}
/**
* Remove inner padding and search cancel button in Safari and Chrome on OS X.
* Safari (but not Chrome) clips the cancel button when the search input has
* padding (and `textfield` appearance).
*/
input[type="search"]::-webkit-search-cancel-button,
input[type="search"]::-webkit-search-decoration {
-webkit-appearance: none;
}
/**
* Define consistent border, margin, and padding.
*/
fieldset {
border: 1px solid #c0c0c0;
margin: 0 2px;
padding: 0.35em 0.625em 0.75em;
}
/**
* 1. Correct `color` not being inherited in IE 8/9/10/11.
* 2. Remove padding so people aren't caught out if they zero out fieldsets.
*/
legend {
border: 0; /* 1 */
padding: 0; /* 2 */
}
/**
* Remove default vertical scrollbar in IE 8/9/10/11.
*/
textarea {
overflow: auto;
}
/**
* Don't inherit the `font-weight` (applied by a rule above).
* NOTE: the default cannot safely be changed in Chrome and Safari on OS X.
*/
optgroup {
font-weight: bold;
}
/* Tables
========================================================================== */
/**
* Remove most spacing between table cells.
*/
table {
border-collapse: collapse;
border-spacing: 0;
}
td,
th {
padding: 0;
}

View File

@ -0,0 +1,58 @@
@import url('//brick.a.ssl.fastly.net/Roboto:400,400i,700')
@import url('//fonts.googleapis.com/css?family=Raleway:800')
@import url('//fonts.googleapis.com/css?family=Fira+Mono:400,400i')
@import url('//brick.a.ssl.fastly.net/EB+Garamond:400i')
$body-font-size: 17px
$body-line-height: 1.7
@mixin font-size($multiplier, $lhmultiplier, $size, $line-height)
font-size: $size * $multiplier
@if $line-height != none
line-height: $line-height * $lhmultiplier
@mixin body-font
font-family: 'Roboto', sans-serif
font-weight: 400
@mixin italic-font
font-family: 'eb garamond', serif
font-weight: 400
font-style: italic
+kernliga
@mixin headline-font
font-family: 'eb garamond', serif
font-weight: 400
font-style: italic
+kernliga
@mixin caps-font
text-transform: uppercase
letter-spacing: 2px
@mixin mono-font
font-family: 'fira mono', monospace
font-weight: 400
letter-spacing: -0.5px
+no-antialias
@mixin bold-font
font-family: 'raleway', sans-serif
font-weight: 800
/*
* sizes
*/
@mixin italic-font-size($size, $line-height: none)
+font-size(1.0, 1.0, $size, $line-height)
@mixin headline-font-size($size, $line-height: none)
+font-size(1.0, 1.0, $size, $line-height)
@mixin bold-font-size($size, $line-height: none)
+font-size(1.0, 1.0, $size, $line-height)
@mixin mono-font-size($size, $line-height: none)
+font-size(1.0, 1.0, $size, $line-height)

View File

@ -0,0 +1,41 @@
@mixin kernliga
font-size-adjust: none
// don't display digraphs in languages that don't support it
-webkit-font-language-override: normal
font-language-override: normal
// use font-defined kerning info
-webkit-font-kerning: auto
font-kerning: auto
// opentype options: kerning, ligatures, horiz ligatures, discretionary ligatures, contextual swash
// https://en.wikipedia.org/wiki/List_of_typographic_features
-webkit-font-feature-settings: "kern", "liga", "dlig", "hlig", "cswh"
font-feature-settings: "kern", "liga", "dlig", "hlig", "cswh"
// allow browser to auto-infer missing glyphs
font-synthesis: weight style
// swashes on first letters
// &:first-letter
// font-feature-settings: "kern", "swsh"
// -webkit-font-feature-settings: "kern", "swsh"
@mixin antialias
text-rendering: optimizeLegibility
-webkit-font-smoothing: antialiased
-moz-osx-font-smoothing: grayscale
@mixin no-antialias
text-rendering: auto
-webkit-font-smoothing: subpixel-antialiased
-moz-osx-font-smoothing: auto
@mixin clearfix
&:after
display: table
content: ''
clear: both
height: 0
zoom: 1

View File

@ -0,0 +1,105 @@
/*
* .about-the-site
*/
.about-the-site
&
position: relative
.container
text-align: center
padding: 3em 80px
margin: 0 auto
+clearfix
@media (max-width: 768px)
padding-left: 40px
padding-right: 40px
&:before
content: ''
position: absolute
display: block
left: 20px
right: 20px
top: 0
border-top: solid 1px $hairline
&
+body-font
font-size: 0.85em
color: lighten($gray, 20%)
a, a:visited
color: lighten($gray, 10%)
box-shadow: inset 0 -1px rgba(black, 0.05)
padding-bottom: 2px
a:hover, a:focus
color: $black
box-shadow: inset 0 -2px $accent
strong
+bold-font
strong a, strong a:visited
color: $black
box-shadow: none
strong a:hover, strong a:focus
color: $black
box-shadow: inset 0 -2px $accent
.identity
margin: 0
margin-top: 0.2em
float: right
+italic-font
+italic-font-size(2.5em)
.identity a,
.identity a:visited
color: $black
box-shadow: none
.identity a:hover,
.identity a:focus
color: $accent
.blurb
margin: 0
max-width: 500px
text-align: left
float: left
line-height: 1.55
.back
float: right
margin-top: 0.4em
margin-right: 2em
.fleuron:before
content: '\f492'
font-family: Ionicons
font-size: 16px
font-weight: normal
font-style: normal
display: inline-block
vertical-align: middle
color: $black
margin: 0 7px
@media (max-width: 768px)
display: none
@media (max-width: 768px)
.identity
float: left
clear: both
.blurb
float: none
margin-bottom: 1em
width: auto
.back
float: right
margin-right: 0

View File

@ -0,0 +1,66 @@
.big-button,
a.big-button
display: inline-block
width: 180px
height: 50px
line-height: 50px - 2px
padding: 0
border-radius: 30px
font-size: 0.85em
box-shadow: none
background: transparent
@media (max-width: 768px)
width: 140px
height: 40px
line-height: 40px - 2px
&, &:visited
border: solid 2px $accent
color: $accent
&.-back,
&.-back:visited
border: solid 1px rgba($gray, 0.2)
color: $gray
&.-back:before,
&.-next:after
font-family: Ionicons
font-size: 20px
display: inline-block
vertical-align: middle
position: relative
top: -1px
&.-back:before
content: '\f38f'
&.-next:after
content: '\f3d1'
margin-left: 16px
top: 0
&.-slim
width: 60px
border-width: 2px
height: 60px
line-height: 60px
border-radius: 50%
@media (max-width: 768px)
width: 40px
height: 40px
line-height: 40px
&:hover, &:focus
background: $accent
border-color: transparent
color: white
box-shadow: none
&.-back:hover,
&.-back:focus
background: $accent
color: white

View File

@ -0,0 +1,8 @@
/*
* .brief-intro -- Brief introduction
*/
.brief-intro
font-size: 1.1em
color: $gray

View File

@ -0,0 +1,38 @@
/*
* .full-image -- full width image containers
*/
.full-image
&
overflow: hidden
text-align: center
position: relative
img
background: #fcfcfc
&.cropped img,
&.cropped img:first-child:last-child
margin-bottom: -50px
display: block
background: transparent
&.cropped:after
content: ''
display: block
position: absolute
bottom: 0
left: 20px
right: 20px
border-bottom: solid 1px $lightgray
&.stretched img
width: 100%
@media (max-width: 768px)
margin-left: -20px
margin-right: -20px
@media (min-width: 769px)
width: 100vw
margin-left: calc(-50vw + #{$page-width} / 2)

View File

@ -0,0 +1,14 @@
.hint--top, .hint--bottom
&:before
margin-top: -14px
margin-left: -8px
border-radius: 2px
&:before, &:after
transition-duration: 10ms
&:after
box-shadow: none
border-radius: 2px
text-shadow: none
margin-left: -55px

View File

@ -0,0 +1,78 @@
.hljs-literal,
.hljs-number,
.hljs-string,
.hljs-symbol,
.hljs-value
color: $accent
.hljs-key,
.hljs-attribute
color: darken($accent, 20%)
.hljs-keyword,
.hljs-constant
color: $black
.hljs-comment
color: $gray
font-style: italic
//
// Prism
//
.token.comment,
.token.prolog,
.token.doctype,
.token.cdata
color: $gray
font-style: italic
.token.punctuation
color: #999
.token.property,
.token.tag,
.token.boolean,
.token.number,
.token.constant,
.token.symbol,
.token.deleted
color: #905
.token.selector,
.token.attr-name,
.token.string,
.token.char,
.token.builtin,
.token.inserted
color: $accent
.token.operator,
.token.entity,
.token.url,
.language-css .token.string,
.style .token.string
color: #a67f59
.token.atrule,
.token.attr-value,
.token.keyword
color: #07a
.token.function
color: #DD4A68
.token.regex,
.token.important,
.token.variable
color: #e90
.token.important,
.token.bold
font-weight: bold
.token.italic
font-style: italic
.token.entity
cursor: help

View File

@ -0,0 +1,142 @@
/*
* .next-article -- lead into the next article
*/
.next-article
$bg: darken(#8e44ad, 15%)
$textcolor: saturate(mix(white, $bg, 85%), 90%)
&
display: block
padding: 0
margin-left: 40px
margin-right: 40px
position: relative
&, &:hover, &:focus
box-shadow: none
&:after
content: ''
display: block
position: absolute
left: -20px
right: -20px
bottom: 0
border-bottom: solid 1px $hairline
// suppress its hairline
& + .about-the-site:before
display: none
@media (max-width: 768px)
margin-left: 0
margin-right: 0
// remove horizontal line
& + .about-the-site:before
display: none
.container
display: block
text-align: center
padding: 10em 20px
@media (min-width: 769px)
margin-top: 8em
padding: 8em 20px
.h3
display: block
margin: 0 auto auto
padding: 0
font-size: 2.2em
line-height: 1.3em
+bold-font
color: white
transition: all 250ms linear
// &:hover > span
// box-shadow: inset 0 -2px $accent
// text-shadow: 0 0 4px $bg, 0 0 4px $bg, 0 0 4px $bg, 0 0 4px $bg, 0 0 4px $bg, 0 0 4px $bg, 0 0 4px $bg, 0 0 4px $bg, 0 0 4px $bg
@media (max-width: 768px)
font-size: 1.5em
.h3, .excerpt
max-width: $page-width * 0.9
.h3 + .excerpt
margin-top: 0.5em
.excerpt
display: block
margin-left: auto
margin-right: auto
font-size: 1em
line-height: 1.6em
.big-button
margin-top: 2em
h3 a:hover,
h3 a:focus
color: $accent
.heading
display: block
+caps-font
font-size: 0.7em
margin-bottom: 1em
.heading:before
font-family: Ionicons
content: '\f4a8'
margin-right: 15px
font-size: 16px
display: inline-block
vertical-align: middle
color: $accent
.big-button,
a.big-button
background: transparent
&, &:visited
border-color: $accent
color: white
&:hover, &:focus
background: $accent
border-color: transparent
@mixin recolor-article($bg, $bg2, $url: '', $a: 0.9, $angle: 177deg)
$w: 1500
$h: 10
$textcolor: mix(white, $bg, 75%)
$notch: "data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='#{$w}' height='#{$h}' version='1.1'><polyline fill='white' points='#{$w},0 0,0 0,#{$h}'/></svg>"
&
background: url($notch) -50px top / 110% auto no-repeat, linear-gradient(to right, rgba(adjust-color($bg, $lightness: 0%), $a), rgba(adjust-color($bg2, $lightness: 0%), $a)), linear-gradient($angle, rgba($bg, 0.0), rgba($bg, 0.9)), url($url) center center / cover, $bg
&:hover, &:focus
background: url($notch) -50px top / 110% auto no-repeat, linear-gradient(to right, rgba(adjust-color($bg, $lightness: 1%), $a), rgba(adjust-color($bg2, $lightness: 1%), $a)), linear-gradient($angle, rgba($bg, 0.0), rgba($bg, 0.9)), url($url) center center / cover, $bg
.excerpt, .heading
color: $textcolor
.next-article
&
+recolor-article(#612e76, #5867cc)
&.-v2
text-shadow: 0 1px 1px rgba(black, 0.5)
+recolor-article(#027d65, #00536b, "bg/pebbles.jpg", 0.7, $angle: 35deg)
&.-v3
text-shadow: 0 1px 1px rgba(black, 0.5)
+recolor-article(#1d2434, #202a3e, "bg/roughwall.jpg", 0.9, $angle: 1deg)
&.-v4
text-shadow: 0 1px 1px rgba(black, 0.5)
+recolor-article(#902014, #c77e0a, "bg/woodfloor.jpg", 0.45, $angle: 1deg)
&.-v5
text-shadow: 0 1px 1px rgba(black, 0.5)
+recolor-article(#17283a, #25295e, "bg/stairs.jpg", 0.85, $angle: 1deg)
// &.next-article

View File

@ -0,0 +1,64 @@
/*
* .post-headline -- H1's of posts
*/
.post-headline
&
margin: 1.5em auto 3em auto
text-align: center
.post-icon
margin-bottom: 2px
h1
text-align: center
margin-bottom: 0
+headline-font
+headline-font-size(2.8em, 1.2)
width: 80%
margin-left: auto
margin-right: auto
@media (max-width: 768px)
+headline-font-size(2em)
.meta
display: block
text-align: center
margin: 0
margin-top: 1em
font-weight: normal
+caps-font
font-size: 0.8em
.meta .author,
.meta .date
margin: 0 5px
padding-bottom: 2px
.meta a,
.meta a:visited
color: $gray
.meta a:hover,
.meta a:focus
&, span
color: $gray
time
color: $black
box-shadow: inset 0 -2px $accent
a, a:visited, a:focus, a:hover
color: $black
text-decoration: none
box-shadow: none
.pubbox
margin-top: 32px
font-size: 16px
line-height: 1.5
.carbon-img
margin-top: 4px

View File

@ -0,0 +1,58 @@
/*
* .post-icon -- category icons
*/
$icon-size: 56px
@mixin iconify($color, $text)
&
background: $color
color: lighten($color, 50%)
box-shadow: -2px 2px #e67e22, 2px -2px #f1c40f, 1px -2px rgba($color, 0.2), 1px 3px rgba($color, 0.3)
span:after
content: $text
.post-icon,
abbr.post-icon
border: 0
margin: 0
display: inline-block
width: $icon-size
height: $icon-size
line-height: $icon-size + 2px
text-align: center
border-radius: 50%
color: #aaa
background: #eee
+body-font
font-size: 16px
letter-spacing: 1px
span:after
content: attr(data-label)
font-size: 0.9em
position: relative
top: -1px
@media (max-width: 480px)
transform: scale(0.75)
&.-icon-css
+iconify(#3498db, 'CSS')
font-size: 14px
line-height: $icon-size + 2px
&.-icon-development
+iconify(#34495e, 'DEV')
font-size: 14px
line-height: $icon-size + 2px
&.-icon-ruby
+iconify(#e74c3c, 'RB')
text-indent: 2px
&.-icon-javascript
+iconify(#2ecc71, 'JS')
text-indent: 1px
&.-icon-productivity
+iconify(#2ecc71, 'PROD')
text-indent: 1px

View File

@ -0,0 +1,73 @@
/*
* .post-index (et al) -- utility classes
*/
.post-index
&
margin: 0 auto 4em auto
position: relative
padding-top: 4em
font-size: 0.9em
.container
overflow: hidden
max-width: $page-width
margin: 0 auto
h3
+caps-font
color: $gray
font-size: 1em
.post-index-item
display: block
overflow: hidden
padding: 6px 20px
border-top: solid 1px $hairline
&, &:hover, &:focus
box-shadow: none
&:hover, &:focus
.article
transition: none
.date
display: block
.date
width: 100px
font-size: 0.8em
color: $gray
@media (min-width: 768px)
padding-left: 0
padding-right: 0
.date, .tag
margin-top: 0.2em
.date, article
float: left
.tag
float: right
.article
color: $text
margin-right: 3px
transition: all 100ms linear
&:hover .article
color: $accent
&:nth-of-type(1) .article,
&:nth-of-type(2) .article,
&:nth-of-type(3) .article,
&:nth-of-type(4) .article
+bold-font
.tag
color: $gray
font-weight: normal
font-size: 0.8em

View File

@ -0,0 +1,23 @@
.post-item
max-width: $page-width
margin: 0 auto
.post-list
margin: 40px auto
padding: 20px
@media (max-width: 768px)
margin: 0 auto
.post-list > .post-item:not(:first-child)
&:before
content: ''
display: block
width: 150px
height: 1px
background: $hairline
margin: 7em auto
@media (max-width: 768px)
margin: 4em auto

View File

@ -0,0 +1,17 @@
.site-header
text-align: center
padding: 0 20px
.container
padding: 15px 20px
font-size: 0.9em
color: rgba($gray, 0.6)
border-bottom: solid 1px $hairline
em
+italic-font
+italic-font-size(1.1em)
font-size: 1.1em
color: $text

View File

@ -0,0 +1,73 @@
/*
* .social-list -- social share icons
*/
.social-list
&, li
margin: 0
padding: 0
&
display: block
text-align: center
width: 100%
margin-top: 2em
@media (min-width: 768px)
margin-top: 4em
&.-top
margin-top: -2em
@media (min-width: 768px)
margin-top: -1em
li
display: inline-block
a
display: inline-block
padding: 6px
text-align: center
box-shadow: none
a:before, a:after
transition: all 100ms linear
.text
display: none
a:before
font-family: 'Ionicons'
font-weight: normal
font-style: normal
font-size: 18px
width: 40px
height: 40px
line-height: 40px
display: inline-block
text-align: center
border: solid 2px transparent
border-radius: 50%
@mixin socialiconify($color, $content, $filled)
&
color: darken($lightgray, 10%)
&:hover,
&:focus
color: $color
&:before
content: $filled
&:hover:before,
&:focus:before
border-color: $color
content: $filled
.facebook a
+socialiconify(#4c66a4, '\f230', '\f231')
.twitter a
+socialiconify(dodgerblue, '\f242', '\f243')
.googleplus a
+socialiconify(#f53, '\f234', '\f235')

View File

@ -0,0 +1,157 @@
/*
* html base (html, body)
*/
*
+antialias
html
font-size: $body-font-size
line-height: $body-line-height
background: $bg
color: $text
@media (max-width: 768px)
font-size: floor($body-font-size * 14/17)
html
transition: opacity 200ms linear
opacity: 1
html, input, textarea, td, th
+body-font
html, body
overflow-x: hidden
/*
* fouc prevention
*/
body
transition: opacity 100ms linear
html.no-js *
opacity: 0
/*
* basic styles (a, p, img...)
*/
a, a:visited
color: $text
text-decoration: none
box-shadow: inset 0 -1px rgba(#888, 0.3)
transition: all 100ms linear
a:focus, a:hover
box-shadow: inset 0 -2px $accent
color: $black
strong, b
&, a, a:visited
color: $black
h3, p, ul, ol
margin: 1.5em 0
/*
* iframes
*/
p > iframe
margin: 0 auto
display: block
/*
* lists
*/
ul, ol
padding-left: 1.5em
ul
&
list-style: none
> li
position: relative
> li:before
content: ''
display: block
position: absolute
left: -1.4em
top: 0
margin-top: 0.7em
width: 4px
height: 4px
border-radius: 50%
border: solid 2px $lightgray
@media (max-width: 768px)
width: 3px
height: 3px
/*
* headings
*/
h2
&, a, a:visited
color: $black
h2
text-align: center
+headline-font
+headline-font-size(2em, 1.4)
margin: 2em auto 0 auto
@media (max-width: 768px)
+headline-font-size(1.6em)
@media (min-width: 769px)
h2:before,
h2:after
content: ''
display: inline-block
vertical-align: middle
width: 46px
height: 1px
background: $lightgray
margin: 0 30px
h3
+bold-font
+bold-font-size(1.1em)
margin-top: 2em
&, a, a:visited
color: $black
@media (max-width: 768px)
margin-top: 1.5em
h3 + p
margin-top: -1.7em
/*
* images
*/
p > img:first-child:last-child
display: block
margin: 0 auto
max-width: 100%
code
+mono-font
+mono-font-size(0.9em)
hr
width: 200px
height: 1px
border: 0
background: $lightgray
margin: 3em auto
display: block

View File

@ -0,0 +1,119 @@
$term-border: mix($accent, white, 50%)
/*
* pre > code -- code blocks
*/
pre > code
+mono-font
+mono-font-size(0.82em)
color: $text
padding-right: 20px
// box-shadow: inset 1px 1px rgba(black, 0.06)
pre
padding: 20px 50px
border-radius: 4px
background: $wash
margin: 2.2em -50px
line-height: 1.2em
@media (min-width: 768px)
border-top: solid 1px #eef3fa
border-bottom: solid 1px #c7d7ee
border-radius: 4px
@media (max-width: 768px)
padding: 20px
margin: 2em -20px
background: darken($wash, 3%)
@media (max-width: 660px)
border-radius: 0
pre + pre
margin-top: -1.5em
pre.medium
> code
font-size: 1em
@media (min-width: 768px)
padding-top: 30px
padding-bottom: 30px
pre.large
> code
font-size: 1.1em
line-height: 1.4em
@media (min-width: 768px)
padding-top: 30px
padding-bottom: 30px
pre.terminal,
pre.light
&
background: white
border: solid 1px $term-border
position: relative
pre.light
background: #fdfdff
pre.terminal
&
padding-top: 56px
&.large
padding-top: 65px
&:before
content: ''
display: block
height: 34px
line-height: 34px
background: white
border-bottom: solid 1px $term-border
border-top-left-radius: 3px
border-top-right-radius: 3px
position: absolute
top: 0
left: 0
right: 0
+bold-font
&:after
content: ''
position: absolute
display: block
width: 4px
height: 4px
border-radius: 50%
left: 15px
top: 15px
font-size: 20px
background-color: $term-border
box-shadow: 20px 0 $term-border, 40px 0 $term-border
@media (max-width: 768px)
margin-left: 0
margin-right: 0
pre + pre
margin-top: -1.7em
@media (min-width: 769px)
pre.cursor > code > :last-child:after
content: ''
display: inline-block
width: 3px
height: 1em
transform: scaleY(1.5) translateY(0.1em)
margin-left: 0.4em
background-color: $accent
-webkit-animation: blink 700ms steps(2,end) infinite
-moz-animation: blink 700ms steps(2,end) infinite
animation: blink 700ms steps(2,end) infinite
h3 + pre,
h3 + table
margin-top: -1em

View File

@ -0,0 +1,73 @@
/*
* table
*/
table
min-width: 100%
margin-top: 2em
margin-bottom: 2em
font-size: 0.9em
border-bottom: solid 1px $gray
thead > tr:first-child > th,
thead > tr:first-child > td,
tbody > tr:first-child > th,
tbody > tr:first-child > td
border-top: solid 1px $gray
td, th
text-align: left
border-top: solid 1px $hairline
padding: 8px 10px
th
+bold-font
color: $black
td:first-child,
th:first-child
text-align: left
padding-left: 0
td:last-child,
th:last-child
padding-right: 0
table.no-head
thead
display: none
table.shortcuts
&
table-layout: fixed
thead
display: none
th:nth-child(1), td:nth-child(1)
width: 25%
th:nth-child(2), td:nth-child(2)
width: 75%
td:first-child > code
background: #fcfcfc
padding: 5px 10px
border-radius: 2px
table.lite-headings
&
border-bottom: solid 1px mix($gray, $lightgray, 50%)
th
color: mix($gray, $lightgray, 50%)
font-size: 0.9em
thead > tr:first-child > td,
thead > tr:first-child > th
border-top: solid 1px mix($gray, $lightgray, 50%)
tbody > tr:first-child > td,
tbody > tr:first-child > th
border-top: solid 1px $hairline

View File

@ -0,0 +1,11 @@
@keyframes blink
0%
opacity: 0
100%
opacity: 1
@-webkit-keyframes blink
0%
opacity: 0
100%
opacity: 1

View File

@ -0,0 +1,27 @@
/*
* .center (et al) -- utility classes
*/
.center
text-align: center
.spaced
@media (min-width: 769px)
margin-top: 4em
margin-bottom: 4em
.spaced-more
@media (min-width: 769px)
margin-top: 6em
margin-bottom: 6em
.spaced-less
@media (min-width: 769px)
margin-top: 2em
margin-bottom: 2em
.wide
@media (min-width: 920px)
width: 140%
margin-left: -25%

Some files were not shown because too many files have changed in this diff Show More