Backstory: I decided to crowdsource static site generator recommendations, so the following are actual real world suggested-to-me results. I then took those and sorted them by language/server and, just for a decent relative metric, their Github Watcher count. If you want a heap of other projects (including other languages like Haskell and Python) Nanoc has the mother of all site generator lists. If you recommend another one, by all means add a comment.
-
Navigate to http://nodejs.org/download/ and on the Linux Binaries (.tar.gz) row click to download the 64-bit version of the current latest release.
-
Say you've downloaded
node-v0.10.7-linux-x64.tar.gzinto theDownloadsdirectory. Then, open the terminal and type the following:
$ cd ~/Downloads
$ mkdir -p ~/local/node
$ tar xzf node-v0.10.7-linux-x64.tar.gz -C ~/local/node --strip-components=1
$ echo '# Node Enviroment Setup' >> ~/.bashrc
$ echo 'export PATH=$HOME/local/node/bin:$PATH' >> ~/.bashrc| @include keyframe(fadeout) { | |
| 0% { | |
| opacity: 1; | |
| } | |
| 100% { | |
| opacity: 0; | |
| } | |
| } |
| var sliding = false; // variable outside function scope to detect a slide is in progress | |
| function slideTo(target, duration){ // credit to Mahieddine Abdelkader & Ludwig Wendzich for original ideas. | |
| var to = isNaN(target) ? $(target).offset().top : target, //find scroll to position | |
| from = $(window).scrollTop() //find starting point | |
| dy = to-from, //calculate change in scroll position - deltaY | |
| body = $("body"), // TODO: better to have it outside of local scope already rather than fetching it every time... | |
| duration = isNaN(duration) ? 500 : duration; | |
| // We're going to use translate-y to move the the page so it feels like we're at the *from* scroll position, when we're actually instantly at the *to* scroll position. */ |
Eric Bidelman has documented some of the common workflows possible with headless Chrome over in https://developers.google.com/web/updates/2017/04/headless-chrome.
If you're looking at this in 2016 and beyond, I strongly recommend investigating real headless Chrome: https://chromium.googlesource.com/chromium/src/+/lkgr/headless/README.md
Windows and Mac users might find using Justin Ribeiro's Docker setup useful here while full support for these platforms is being worked out.
| RYAML = <<-BASH | |
| function ryaml { | |
| ruby -ryaml -e 'puts ARGV[1..-1].inject(YAML.load(File.read(ARGV[0]))) {|acc, key| acc[key] }' "$@" | |
| }; | |
| BASH | |
| namespace :sync do | |
| task :db do | |
| isolate do | |
| invoke :environment |
- Why we skip Photoshop by Jason Fried of 37signals - http://37signals.com/svn/posts/1061-why-we-skip-photoshop
- Style Tiles - http://styletil.es/
- Gimme Bar : Front end styleguides and pattern libraries - https://gimmebar.com/collection/4ecd439c2f0aaad734000022/front-end-styleguides
- ウェブデザイナーのための便利すぎるツール&リソース20選【最新版】 - http://www.seojapan.com/blog/20-web-design-resources
- CSS Front-end Frameworks with comparison - By usabli.ca - http://usablica.github.io/front-end-frameworks/compare.html?v=2.0
One of the best ways to reduce complexity (read: stress) in web development is to minimize the differences between your development and production environments. After being frustrated by attempts to unify the approach to SSL on my local machine and in production, I searched for a workflow that would make the protocol invisible to me between all environments.
Most workflows make the following compromises:
-
Use HTTPS in production but HTTP locally. This is annoying because it makes the environments inconsistent, and the protocol choices leak up into the stack. For example, your web application needs to understand the underlying protocol when using the
secureflag for cookies. If you don't get this right, your HTTP development server won't be able to read the cookies it writes, or worse, your HTTPS production server could pass sensitive cookies over an insecure connection. -
Use production SSL certificates locally. This is annoying
| require 'formula' | |
| class Pngout < Formula | |
| url 'http://static.jonof.id.au/dl/kenutils/pngout-20130221-darwin.tar.gz' | |
| homepage 'http://www.jonof.id.au/kenutils' | |
| sha256 '995cc1df35e68b723c8143ad82c058be763f9af4fc373894ec74de3e7f18d0dd' | |
| version '20130221' | |
| def install | |
| prefix.install Dir['*'] |