STEPS
-
Click on Help menu
-
Select Enter License
-
Then paste given KEY given at bottom
-
Finally click on Use License
| /* Ultra lightweight Github REST Client */ | |
| // original inspiration via https://gist.github.com/v1vendi/75d5e5dad7a2d1ef3fcb48234e4528cb | |
| const token = 'github-token-here' | |
| const githubClient = generateAPI('https://api.github.com', { | |
| headers: { | |
| 'User-Agent': 'xyz', | |
| 'Authorization': `bearer ${token}` | |
| } | |
| }) |
| import { createTestContext } from "./__helpers"; | |
| const ctx = createTestContext(); | |
| it("ensures that draft can be created and published", async () => { | |
| const draftResult = await ctx.client.request( | |
| ` | |
| mutation { | |
| createDraft(title: "Nexus", body: "...") { | |
| id |
| CREATE SEQUENCE IF NOT EXISTS public.global_id_sequence; | |
| CREATE OR REPLACE FUNCTION id_generator(OUT result BIGINT) AS $$ | |
| DECLARE | |
| epoch BIGINT := 1610850820000; | |
| seq_id BIGINT; | |
| now_millis BIGINT; | |
| shard_id INT := 1; | |
| BEGIN | |
| SELECT nextval('public.global_id_sequence') % 1024 INTO seq_id; |
| <plist version="1.0"> | |
| <dict> | |
| <key>author</key> | |
| <string>IceTimux (http://icetimux.com)</string> | |
| <key>name</key> | |
| <string>One Dark</string> | |
| <key>semanticClass</key> | |
| <string>theme.dark.one_dark</string> | |
| <key>colorSpaceName</key> | |
| <string>sRGB</string> |
STEPS
Click on Help menu
Select Enter License
Then paste given KEY given at bottom
Finally click on Use License
e.g: tar -czvf name-of-archive.tar.gz /path/to/directory-or-file
| /* | |
| * This is a version of Facebook's React Conditional Rendering | |
| * example modified to support firebase authentication. | |
| * https://facebook.github.io/react/docs/conditional-rendering.html | |
| */ | |
| import React, { Component, PropTypes } from 'react'; | |
| import * as firebase from 'firebase'; | |
| function UserAvatar(props) { |
| function loggedIn() { | |
| // ... | |
| } | |
| function requireAuth(nextState, replace) { | |
| if (!loggedIn()) { | |
| replace({ | |
| pathname: '/login' | |
| }) | |
| } |
| //Make a directory to hold the node | |
| mkdir node-install-dir | |
| cd node-install-dir | |
| //Curl and unzip latest node | |
| curl http://nodejs.org/dist/node-latest.tar.gz | tar xz --strip-components=1 | |
| //Install gcc and g++ | |
| sudo apt-get update | |
| sudo apt-get install make gcc g++ apache2 |
| .box { | |
| box-shadow: 0 22px 70px 4px rgba(0, 0, 0, 0.56); | |
| } |