For faster connection speed and more flexibility.
- Start Xcode in command line by running this in commandline
/Applications/Xcode.app/Contents/MacOS/Xcode - Start downloading of the simulator
- Cancel it. YES CANCEL IT!
- You will get a message like this:
| /** | |
| * The Anatomy of a Remix Route | |
| */ | |
| import { parseFormBody, json, redirect } from "@remix-run/data"; | |
| import { | |
| Form, | |
| useRouteData, | |
| usePendingFormSubmit, | |
| preload, | |
| } from "@remix-run/react"; |
| Mute these words in your settings here: https://twitter.com/settings/muted_keywords | |
| ActivityTweet | |
| generic_activity_highlights | |
| generic_activity_momentsbreaking | |
| RankedOrganicTweet | |
| suggest_activity | |
| suggest_activity_feed | |
| suggest_activity_highlights | |
| suggest_activity_tweet |
| // get an array of all the keys on the window | |
| const dirty = Object.keys(window); | |
| // Then create an iframe set to nothing | |
| const iframe = document.createElement('iframe'); | |
| iframe.src = ''; | |
| // put it into the DOM | |
| document.body.append(iframe); |
| import { ApolloServer, gql } from 'apollo-server-micro'; | |
| const typeDefs = gql` | |
| type Query { | |
| sayHello: String | |
| } | |
| `; | |
| const resolvers = { | |
| Query: { |
For faster connection speed and more flexibility.
/Applications/Xcode.app/Contents/MacOS/Xcode| /* bling.js */ | |
| window.$ = document.querySelector.bind(document); | |
| window.$$ = document.querySelectorAll.bind(document); | |
| Node.prototype.on = window.on = function(name, fn) { this.addEventListener(name, fn); }; | |
| NodeList.prototype.__proto__ = Array.prototype; | |
| NodeList.prototype.on = function(name, fn) { this.forEach((elem) => elem.on(name, fn)); }; |