This is flow used by apps on Apple TV / Roku. However, it is also useful for CLIs.
Here is my rundown. Please correct me in comments if something is wrong or if there is a better way to do this.
Device pings the server to begin activation process
import {MDXProvider} from '@mdx-js/react'; | |
import {MDXComponents} from 'components/MDX/MDXComponents'; | |
import {Toc} from 'components/Toc/Toc'; | |
import * as React from 'react'; | |
export interface MarkdownProps<Frontmatter> { | |
meta: Frontmatter; | |
children?: React.ReactNode; | |
} |
$(document).ready(() => { | |
$("#add_bookmark").click(() => { | |
// Mozilla Firefox Bookmark | |
window.sidebar && window.sidebar.addPanel(location.href, document.title,""); | |
// IE Favorite | |
window.external && window.external.AddFavorite(location.href, document.title); | |
// Opera Hotlist | |
if( window.opera && window.print ) { | |
this.title=document.title; | |
return true; |
document.onscroll = (() => { | |
let totalUnliked = 0; | |
return async () => { | |
const tweets = document.querySelectorAll('[role="article"]'); | |
await tweets.forEach(async e => { | |
const likeButton = document.querySelector('[data-testid="unlike"]'); | |
if (typeof likeButton !== 'undefined' && likeButton) { | |
await likeButton.click(); | |
totalUnliked += 1; | |
console.log(totalUnliked); |
<?php | |
class Loadmore_Button { | |
public $article_wrapper = 'article-card'; | |
public $post_per_load = 6; | |
public $button_text = 'Показать еще'; | |
public $button_loading_text = 'Загрузка...'; | |
public $button_data_attr = 'data-aos="fade-up"'; | |
public $orderby = 'date'; | |
public $article_class = '.all-news__item'; | |
public $button_class = 'all-news__btn-more'; |
'use strict'; | |
const fs = require('fs'); | |
const path = require('path'); | |
module.exports = name => { | |
const datapath = path.join(__dirname, `${name}.json`); | |
const history = []; | |
const record = (input, key) => { |
FORMAT: 1A | |
# Bookstore | |
Bookstore is a simple API which allows consumers to view all books and create new ones. | |
## Group Book | |
Resources related to books in the API. |
FROM alpine | |
RUN apk add --update --no-cache nodejs | |
RUN npm i -g yarn | |
ADD package.json yarn.lock /tmp/ | |
ADD .yarn-cache.tgz / | |
RUN cd /tmp && yarn | |
RUN mkdir -p /service && cd /service && ln -s /tmp/node_modules |
Free O'Reilly books and convenient script to just download them.
Thanks /u/FallenAege/ and /u/ShPavel/ from this Reddit post
How to use:
download.sh
file and put it into a directory where you want the files to be saved.cd
into the directory and make sure that it has executable permissions (chmod +x download.sh
should do it)./download.sh
and wee there it goes. Also if you do not want all the files, just simply comment the ones you do not want.<?php | |
namespace App; | |
use Illuminate\Auth\Authenticatable; | |
use Laravel\Lumen\Auth\Authorizable; | |
use Illuminate\Database\Eloquent\Model; | |
use Illuminate\Contracts\Auth\Authenticatable as AuthenticatableContract; | |
use Illuminate\Contracts\Auth\Access\Authorizable as AuthorizableContract; | |
use Tymon\JWTAuth\Contracts\JWTSubject; |