Follow this guide to install WSL:
https://docs.microsoft.com/en-us/windows/wsl/install-win10
- Get your build tools and python required libraries installed:
| import { useState } from 'react'; | |
| export function useCounter(initial = 0) { | |
| const [count, setCount] = useState(initial); | |
| return [count, () => setCount(count + 1)]; | |
| } |
Follow this guide to install WSL:
https://docs.microsoft.com/en-us/windows/wsl/install-win10
| <!DOCTYPE html> | |
| <html> | |
| <head> | |
| <meta charset="utf-8"> | |
| <title></title> | |
| </head> | |
| <body> | |
| <script type="text/javascript"> | |
| const warningTitleCSS = 'color:red; font-size:60px; font-weight: bold; -webkit-text-stroke: 1px black;'; | |
| const warningDescCSS = 'font-size: 18px;'; |
| ## Global install of the app generator | |
| npm install -g create-react-app | |
| ## Setup the app (first-time only) | |
| create-react-app my-app | |
| cd my-app | |
| git init | |
| # Create the Heroku app; requires free account at https://www.heroku.com/ | |
| heroku create -b https://github.com/heroku/heroku-buildpack-static.git |
| // https://googlechrome.github.io/samples/fetch-api/fetch-post.html | |
| var request = new Request('https://hooks.slack.com/services/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', { | |
| method: 'POST', | |
| body: JSON.stringify({text: 'Hello'}), | |
| headers: new Headers({'Content-type': 'application/json'}) | |
| }); | |
| fetch(request).then(function(response) { console.log(response)}); |
| // Use Gists to store code you would like to remember later on | |
| console.log(window); // log the "window" object to the console |
| main() { | |
| # Use colors, but only if connected to a terminal, and that terminal | |
| # supports them. | |
| if which tput >/dev/null 2>&1; then | |
| ncolors=$(tput colors) | |
| fi | |
| if [ -t 1 ] && [ -n "$ncolors" ] && [ "$ncolors" -ge 8 ]; then | |
| RED="$(tput setaf 1)" | |
| GREEN="$(tput setaf 2)" | |
| YELLOW="$(tput setaf 3)" |
| 准备: | |
| libxml2 2.6.18 or above from http://www.xmlsoft.org/ | |
| libxslt 1.1.x or above from http://www.xmlsoft.org/ | |
| 先查看当前系统中是否有安装libxml2,libxslt这两个库,如果没有请到下面的网站中去下载安装 | |
| # sudo apt-get install libxml2-dev | |
| # sudo apt-get install libxslt1-dev | |
| 由于安装pgAdmin3需要wxGTK,所以也要下载wxGTK | |
| wxGTK 2.8.x from http://www.wxwidgets.org/ |
Originally published in June 2008
When hiring Ruby on Rails programmers, knowing the right questions to ask during an interview was a real challenge for me at first. In 30 minutes or less, it's difficult to get a solid read on a candidate's skill set without looking at code they've previously written. And in the corporate/enterprise world, I often don't have access to their previous work.
To ensure we hired competent ruby developers at my last job, I created a list of 15 ruby questions -- a ruby measuring stick if you will -- to select the cream of the crop that walked through our doors.
Candidates will typically give you a range of responses based on their experience and personality. So it's up to you to decide the correctness of their answer.