This is a list of things you need to accomplish to start up a new React project.
- Run
git init? - Run
npm init? - Created
.gitignore? - Made sure
node_modulesis in.gitignore? - Installed React?
npm install react --save
| const Memcached = require('memcached'); | |
| const configClient = new Memcached('xyz123.cfg.cache.amazonaws.com:11211'); | |
| configClient.command(configGetCluster); | |
| function configGetCluster() { | |
| return { | |
| command: 'config get cluster', | |
| callback: handleClusterResponse |
| # Inspired by http://rarlindseysmash.com/posts/stupid-programmer-tricks-and-star-wars-gifs | |
| # via https://news.ycombinator.com/item?id=6633490 | |
| # Requires | |
| # * a reasonably recent ffmpeg suite | |
| # * Graphicsmagick or ImageMagick | |
| # * optionally: Gifsicle | |
| # * an input video file | |
| # Usage: | |
| # python gifgif.py a_video_file.avi |
| # Basically the nginx configuration I use at konklone.com. | |
| # I check it using https://www.ssllabs.com/ssltest/analyze.html?d=konklone.com | |
| # | |
| # To provide feedback, please tweet at @konklone or email [email protected]. | |
| # Comments on gists don't notify the author. | |
| # | |
| # Thanks to WubTheCaptain (https://wubthecaptain.eu) for his help and ciphersuites. | |
| # Thanks to Ilya Grigorik (https://www.igvita.com) for constant inspiration. | |
| server { |
| This is free and unencumbered software released into the public domain. | |
| Anyone is free to copy, modify, publish, use, compile, sell, or | |
| distribute this software, either in source code form or as a compiled | |
| binary, for any purpose, commercial or non-commercial, and by any | |
| means. | |
| In jurisdictions that recognize copyright laws, the author or authors | |
| of this software dedicate any and all copyright interest in the | |
| software to the public domain. We make this dedication for the benefit |
| // ----------------------------------------------------------------------------- | |
| /* Shame CSS */ | |
| // This is not a dumping ground. It is a staging area for hacks that are | |
| // intended to be fixed and resolved so as not to sully our | |
| // production-ready codebase. Hacks are necessary, but they are not | |
| // permanent, nor are they acceptable long-term. You are not done when | |
| // you've moved your selector and rules here. | |
| // This is not intended to be an easy fix, or a simple way out. You will | |
| // spend time writing out your shame, and you will make it known that |
| # Usage: redis-cli publish message hello | |
| require 'sinatra' | |
| require 'redis' | |
| conns = [] | |
| get '/' do | |
| erb :index | |
| end |
| =Navigating= | |
| visit('/projects') | |
| visit(post_comments_path(post)) | |
| =Clicking links and buttons= | |
| click_link('id-of-link') | |
| click_link('Link Text') | |
| click_button('Save') | |
| click('Link Text') # Click either a link or a button | |
| click('Button Value') |