Remove some deprecated sheets
This commit is contained in:
parent
68af8e66f6
commit
e54458ad9c
|
@ -1,37 +0,0 @@
|
||||||
---
|
|
||||||
title: Inline documentation
|
|
||||||
---
|
|
||||||
|
|
||||||
* Ruby: rdoc
|
|
||||||
* JavaScript: jsdoc
|
|
||||||
|
|
||||||
### RDoc
|
|
||||||
|
|
||||||
# Gets a circle's area
|
|
||||||
#
|
|
||||||
# @example
|
|
||||||
#
|
|
||||||
# area(3)
|
|
||||||
# #=> 28.27
|
|
||||||
#
|
|
||||||
# @param [Number] r The radius of the ricle
|
|
||||||
# @return [true] If so
|
|
||||||
#
|
|
||||||
# == Definition lists
|
|
||||||
#
|
|
||||||
# list:: hi.
|
|
||||||
# +foo+:: parameterized
|
|
||||||
#
|
|
||||||
# == Definition lists
|
|
||||||
# [foo] also
|
|
||||||
# [bar] like this
|
|
||||||
|
|
||||||
http://rdoc.rubyforge.org/RDoc/Markup.html
|
|
||||||
|
|
||||||
### Jsdoc
|
|
||||||
|
|
||||||
/**
|
|
||||||
* Ads numbers
|
|
||||||
*
|
|
||||||
* @this {Circle}
|
|
||||||
* @param {Number} r The radius
|
|
|
@ -1,14 +0,0 @@
|
||||||
---
|
|
||||||
title: Rails features
|
|
||||||
category: Rails
|
|
||||||
---
|
|
||||||
|
|
||||||
### [Page caching](https://github.com/rails/actionpack-page_caching)
|
|
||||||
|
|
||||||
class WeblogController < ActionController::Base
|
|
||||||
caches_page :show, :new
|
|
||||||
end
|
|
||||||
|
|
||||||
This will generate cache files such as `weblog/show/5.html` and
|
|
||||||
`weblog/new.html`, which match the URLs used that would normally trigger dynamic
|
|
||||||
page generation
|
|
30
rubiks.md
30
rubiks.md
|
@ -1,30 +0,0 @@
|
||||||
---
|
|
||||||
title: Rubiks cube
|
|
||||||
---
|
|
||||||
|
|
||||||
### Getting the cross
|
|
||||||
|
|
||||||
* L (N W C)
|
|
||||||
* line (E C W)
|
|
||||||
* cross (N E W S C)
|
|
||||||
|
|
||||||
`F R U R' U' F'`
|
|
||||||
|
|
||||||
### Aligning the cross's sides
|
|
||||||
|
|
||||||
* Nothing aligned
|
|
||||||
* line (N C S)
|
|
||||||
* L (N C E)
|
|
||||||
* All are aligned
|
|
||||||
|
|
||||||
`R U R' U R 2U R'`
|
|
||||||
|
|
||||||
### Aligning the corners
|
|
||||||
|
|
||||||
* 0 spots ok
|
|
||||||
* 1 spot ok in south-east
|
|
||||||
* 4 spots ok: proceed
|
|
||||||
|
|
||||||
`U R U' L' U R' U' L`
|
|
||||||
|
|
||||||
|
|
|
@ -1,61 +0,0 @@
|
||||||
---
|
|
||||||
title: Deploy gh-pages via Travis
|
|
||||||
category: Git
|
|
||||||
---
|
|
||||||
|
|
||||||
Taken from https://medium.com/@nthgergo/publishing-gh-pages-with-travis-ci-53a8270e87db
|
|
||||||
|
|
||||||
### Create an OAuth token and encrypt it
|
|
||||||
|
|
||||||
Use https://github.com/settings/tokens/new
|
|
||||||
|
|
||||||
```sh
|
|
||||||
# via ruby
|
|
||||||
gem install travis
|
|
||||||
travis encrypt -r user/repo GITHUB_TOKEN=[the token here]
|
|
||||||
```
|
|
||||||
|
|
||||||
### Make it run the deploy script on deploy
|
|
||||||
|
|
||||||
```yaml
|
|
||||||
# .travis.yml
|
|
||||||
script:
|
|
||||||
- bash ./scripts/deploy-to-gh-pages.sh
|
|
||||||
env:
|
|
||||||
global:
|
|
||||||
- GITHUB_REPO: "user/repo"
|
|
||||||
- secure: "nlnXJW/imf/w..." # <-- from travis-encrypt
|
|
||||||
```
|
|
||||||
|
|
||||||
### Write deployer
|
|
||||||
|
|
||||||
Create the file `scripts/deploy-to-gh-pages.sh`
|
|
||||||
|
|
||||||
```sh
|
|
||||||
#!/bin/bash
|
|
||||||
# See https://medium.com/@nthgergo/publishing-gh-pages-with-travis-ci-53a8270e87db
|
|
||||||
set -o errexit
|
|
||||||
|
|
||||||
rm -rf public
|
|
||||||
mkdir public
|
|
||||||
|
|
||||||
# config
|
|
||||||
git config --global user.email "nobody@nobody.org"
|
|
||||||
git config --global user.name "Travis CI"
|
|
||||||
|
|
||||||
# build (CHANGE THIS)
|
|
||||||
make
|
|
||||||
|
|
||||||
# deploy
|
|
||||||
cd public
|
|
||||||
git init
|
|
||||||
git add .
|
|
||||||
git commit -m "Deploy to Github Pages"
|
|
||||||
git push --force --quiet "https://${GITHUB_TOKEN}@$github.com/${GITHUB_REPO}.git" master:gh-pages > /dev/null 2>&1
|
|
||||||
```
|
|
||||||
|
|
||||||
From Ractive, this might be useful in certain cases:
|
|
||||||
|
|
||||||
```
|
|
||||||
if [ "$TRAVIS_PULL_REQUEST" != "false" -o "$TRAVIS_BRANCH" != "master" ]; then exit 0; fi
|
|
||||||
```
|
|
Loading…
Reference in New Issue