Skip to content

Instantly share code, notes, and snippets.

View Uvacoder's full-sized avatar

uvacoder Uvacoder

View GitHub Profile
@Uvacoder
Uvacoder / last_updated_repos.md
Created December 24, 2022 23:56 — forked from MichaelCurrin/last_updated_repos.md
GitHub GraphQL - Get active repos

GitHub GraphQL - Get active repos

Get 100 repos owned by a user or org, with the most recently pushed repo first

If you have access to see the private repos of an org or user, you'll see those too.

Steps

  1. Go to the GraphQL API explorer:
@Uvacoder
Uvacoder / twitter-api-tokens.md
Created December 24, 2022 23:55 — forked from MichaelCurrin/twitter-api-tokens.md
Twitter API tokens for a new account

Twitter API tokens

How to set up a Twitter dev account, register Twitter app and generate Twitter API tokens

This guide takes you through setting up a new Twitter account all the way through to generated Twitter auth tokens (aka API tokens or credentials). These tokens must be used on every request, such as fetch or create Twitter content.

Overview

  1. Register a Twitter account.
  2. Apply for a Twitter developer account.
@Uvacoder
Uvacoder / README.md
Created December 24, 2022 23:54 — forked from MichaelCurrin/README.md
GitHub GraphQL - Get owned repos

Public repos owned by the current user

Get repos from the GitHub GraphQL API which are owned by the authenticated user (owner of the token).

Customize the query

Instead of OWNER, you can also change the ownerAffiliations filter in the query to be COLLABORATOR or ORGANIZATION_MEMBER. Or omit the filter.

Instead of setting privacy filter to PUBLIC, you can set to PRIVATE. Or omit the filter.

@Uvacoder
Uvacoder / README.md
Created December 24, 2022 23:52 — forked from MichaelCurrin/README.md
GitHub GraphQL - Get repos for a target GH user or org
@Uvacoder
Uvacoder / docsify-embed-gist.md
Created December 24, 2022 23:52 — forked from MichaelCurrin/docsify-embed-gist.md
Docsify - embed a gist that stays update to date
const HOST_URL = process.env.BASE_URL || 'http://localhost:3000';
//const API_URL = process.env.BASE_API_URL || 'http://14.225.11.12:3030/api/client';
const API_URL = process.env.BASE_API_URL || 'http://localhost:3000';
const webpack = require("webpack");
module.exports = {
mode: 'spa',
@Uvacoder
Uvacoder / nuxt.config.js
Created November 27, 2022 03:09 — forked from mjgartendev/nuxt.config.js
An example nuxt.config.js file heavily commented from the nuxt and vue-meta documentation examples
module.exports = {
/*
Headers of the page
- Nuxt.js uses vue-meta to update the headers and html attributes of your application.
- Nuxt.js configures vue-meta with these options:
{
keyName: 'head', // the component option name that vue-meta looks for meta info on.
attribute: 'data-n-head', // the attribute name vue-meta adds to the tags it observes
ssrAttribute: 'data-n-head-ssr', // the attribute name that lets vue-meta know that meta info has already been server-rendered
tagIDKeyName: 'hid' // the property name that vue-meta uses to determine whether to overwrite or append a tag
@Uvacoder
Uvacoder / gist_markdown_examples.md
Created November 8, 2022 08:14 — forked from ww9/gist_markdown_examples.md
Gist markdown examples

Gist markdown examples

A collection of Markdown code and tricks that were tested to work in Gist.

This and all public gists in https://gist.github.com/ww9 are Public Domain. Do whatever you want with it including , no need to credit me.

Todo

  • Reformat this whole document and assimilate these:
@Uvacoder
Uvacoder / _description.md
Created November 8, 2022 08:13 — forked from ww9/one-line-text-art-and-emojis_utf8_ascii.txt
Emojis, UTF8, ASCII (one line) #misc

Collection of one line text art (◕‿◕✿)

Collection of emojis and one line text art like (╯°□°)╯︵ ┻━┻ 🤗

@Uvacoder
Uvacoder / criticalcss-bookmarklet-devtool-snippet.js
Created November 5, 2022 14:43 — forked from PaulKinlan/criticalcss-bookmarklet-devtool-snippet.js
CriticalCSS Bookmarklet and Devtool Snippet.js
(function() {
var CSSCriticalPath = function(w, d, opts) {
var opt = opts || {};
var css = {};
var pushCSS = function(r) {
if(!!css[r.selectorText] === false) css[r.selectorText] = {};
var styles = r.style.cssText.split(/;(?![A-Za-z0-9])/);
for(var i = 0; i < styles.length; i++) {
if(!!styles[i] === false) continue;
var pair = styles[i].split(": ");