Enter this in the search box along with your search terms:
Get all gists from the user santisbon.
user:santisbon
Find all gists with a .yml extension.
extension:yml
Find all gists with HTML files.
language:html
Enter this in the search box along with your search terms:
Get all gists from the user santisbon.
user:santisbon
Find all gists with a .yml extension.
extension:yml
Find all gists with HTML files.
language:html
| // Try at : https://graphql-explorer.githubapp.com/ | |
| { | |
| search(query: "language:JavaScript stars:>10000", type: REPOSITORY, first: 10) { | |
| repositoryCount | |
| edges { | |
| node { | |
| ... on Repository { | |
| name | |
| descriptionHTML | |
| stargazers { |
| /** | |
| * Copyright 2017 Google Inc. All rights reserved. | |
| * | |
| * Licensed under the Apache License, Version 2.0 (the "License"); | |
| * you may not use this file except in compliance with the License. | |
| * You may obtain a copy of the License at | |
| * | |
| * http://www.apache.org/licenses/LICENSE-2.0 | |
| * | |
| * Unless required by applicable law or agreed to in writing, software |
| /** | |
| * Copyright 2018 Google Inc. All rights reserved. | |
| * | |
| * Licensed under the Apache License, Version 2.0 (the "License"); | |
| * you may not use this file except in compliance with the License. | |
| * You may obtain a copy of the License at | |
| * | |
| * http://www.apache.org/licenses/LICENSE-2.0 | |
| * | |
| * Unless required by applicable law or agreed to in writing, software |
| let regex; | |
| /* matching a specific string */ | |
| regex = /hello/; // looks for the string between the forward slashes (case-sensitive)... matches "hello", "hello123", "123hello123", "123hello"; doesn't match for "hell0", "Hello" | |
| regex = /hello/i; // looks for the string between the forward slashes (case-insensitive)... matches "hello", "HelLo", "123HelLO" | |
| regex = /hello/g; // looks for multiple occurrences of string between the forward slashes... | |
| /* wildcards */ | |
| regex = /h.llo/; // the "." matches any one character other than a new line character... matches "hello", "hallo" but not "h\nllo" | |
| regex = /h.*llo/; // the "*" matches any character(s) zero or more times... matches "hello", "heeeeeello", "hllo", "hwarwareallo" |
| function orderedByRanking(people) { | |
| return objs.sort(compare); | |
| } | |
| function compare(a,b) { | |
| if (a.ranking < b.ranking ) | |
| return -1; | |
| if (a.ranking > b.ranking ) | |
| return 1; | |
| return 0; |
| # ... | |
| gem 'carrierwave' | |
| gem 'fog', '~> 1.0.0' # Need to specify version, as carrierwave references older (0.9.0) which doesn't allow configuration of Rackspace UK Auth URL |
| // note: I'm using redux-actions in here, so the actions might look a bit different than you are used too | |
| // note: This is not complete but the concepts are | |
| // excerpt from app.js | |
| import { createStore, applyMiddleware } from 'redux'; | |
| import thunk from 'redux-thunk'; | |
| import fetch from 'isomorphic-fetch' | |
| // note: you could totally leave out the fetch argument here if you set a default (as I do in my actions) | |
| // I'm right now not absolutely sure how I will handle this in the future (the way it is now it is a bit redundant) |
| import React from 'react' | |
| import PropTypes from 'prop-types' | |
| import { connect } from 'react-redux' | |
| import { submitValue } from '../store/modules/showBox' | |
| export class ShowBox extends React.Component { | |
| constructor(props) { | |
| super(props) | |
| this.state = { | |
| searchString: this.props.search || "" |