Please install the following programs and create the necessary accounts in preparation for the course.
These are all free tools.
- Visual Studio Code [https://code.visualstudio.com/]
- Google Chrome [https://www.google.com/chrome/]
Please install the following programs and create the necessary accounts in preparation for the course.
These are all free tools.
| const { InMemoryLRUCache } = require("apollo-server-caching"); | |
| class SQLCache { | |
| constructor(cache = new InMemoryLRUCache()) { | |
| this.cache = cache; | |
| } | |
| async knexPlugin(knexThen, ctx, args) { | |
| const isSelectStatement = ctx._method === "select"; |
| const { InMemoryLRUCache } = require("apollo-server-caching"); | |
| const DataLoader = require("dataloader"); | |
| class SQLCache { | |
| constructor(cache = new InMemoryLRUCache(), knex) { | |
| this.cache = cache; | |
| this.loader = new DataLoader(queries => | |
| Promise.all(queries.map(query => knexInstance.raw(query))) | |
| ); | |
| } |
| import { withData } from 'perch-data'; | |
| import ChartWidget from '../Shared/ObservableDashboard/ChartWidget'; | |
| import { getObservableResults } from '../../actions/search'; | |
| class ActivityByCommunity extends React.Component { | |
| constructor(props) { | |
| super(props); | |
| this.state = { sortDirection: 'desc' }; | |
| } |
| -Go to the starting point of the project | |
| >> git checkout origin master | |
| -fetch all objects | |
| >> git fetch origin | |
| -Make the branch from the tag | |
| >> git branch new_branch tag_name | |
| -Checkout the branch | |
| >> git checkout new_branch | |
| -Push the branch up | |
| >> git push origin new_branch |
| + (NSArray*)tetradPaletteFromUIColor:(UIColor*)color { | |
| NSMutableArray *palette = [[NSMutableArray alloc] init]; | |
| CGFloat primary_hue; | |
| CGFloat saturation; | |
| CGFloat brightness; | |
| CGFloat alpha; | |
| BOOL success = [color getHue:&primary_hue saturation:&saturation brightness:&brightness alpha:&alpha]; |
| <!DOCTYPE html> | |
| <html lang="en"> | |
| <head> | |
| <meta name="viewport" content="width=device-width, initial-scale=1.0"> | |
| <title>Grid Template for Bootstrap</title> | |
| <link href="css/bootstrap.css" rel="stylesheet"> | |
| <link href="css/main.css" rel="stylesheet"> | |
| </head> | |
| <body> |