A Pen by kyle hennessy on CodePen.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| WITH bigarea as (SELECT * from country ORDER BY surfacearea desc limit 10) | |
| select language from countrylanguage join bigarea on code = countrycode | |
| select sum(population) from country join (select* from countrylanguage where language = 'English') AS sub2 on code = countrycode | |
| select name from country join (select * from countrylanguage where isofficial is false) as sub7 on code = countrycode | |
| select country.name from country LEFT OUTer join city on (country.code = city.countrycode) WHERE city.id is null |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| select * from customers join (select * from orders) as a on a.customerid = customers.customerid ORDER BY a.orderdate desc limit 1 | |
| select | |
| customers.firstname, | |
| customers.lastname, | |
| array_agg(products.title), | |
| from customers join | |
| orders using (customerid) join | |
| orderlines using (orderid) join |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <html> | |
| <body> | |
| <div class="container"> | |
| <div class="row"> | |
| <div class="title"> | |
| Free Code Camp Zipline | |
| </div> | |
| <div class="subtitle">Local Weather App</div> | |
| <div class="subtitle" id="title"></div> | |
| <div class="location details" id="temperature"></div> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <link rel="import" href="../polymer/polymer.html"> | |
| <polymer-element name="my-element"> | |
| <template> | |
| <style> | |
| :host { | |
| position: absolute; | |
| width: 100%; | |
| height: 100%; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # Your snippets | |
| # | |
| # Atom snippets allow you to enter a simple prefix in the editor and hit tab to | |
| # expand the prefix into a larger code block with templated values. | |
| # | |
| # You can create a new snippet in this file by typing "snip" and then hitting | |
| # tab. | |
| # | |
| # An example CoffeeScript snippet to expand log to console.log: | |
| # |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # Would you like to use another custom folder than $ZSH/custom? | |
| # ZSH_CUSTOM=/path/to/new-custom-folder | |
| # Which plugins would you like to load? (plugins can be found in ~/.oh-my-zsh/plugins/*) | |
| # Custom plugins may be added to ~/.oh-my-zsh/custom/plugins/ | |
| # Example format: plugins=(rails git textmate ruby lighthouse) | |
| # Add wisely, as too many plugins slow down shell startup. | |
| plugins=(git) | |
| # User configuration |
Either copy the aliases from the .gitconfig or run the commands in add-pr-alias.sh
Easily checkout local copies of pull requests from remotes:
git pr 4- creates local branchpr/4from the githubupstream(if it exists) ororiginremote and checks it outgit pr 4 someremote- creates local branchpr/4fromsomeremoteremote and checks it out
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import React, { Component } from "react"; | |
| import { findDOMNode } from "react-dom"; | |
| import * as R from "ramda"; | |
| class ScrollController extends Component { | |
| constructor(props) { | |
| super(props); | |
| this.props.tabs.forEach(([key, comp]) => { | |
| this[key] = React.createContext(); | |
| }); |