This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| require("dotenv").config(); | |
| const { BskyAgent } = require("@atproto/api"); | |
| const fs = require("fs/promises"); | |
| const delay = (ms) => new Promise((resolve) => setTimeout(resolve, ms)); | |
| // Configuration | |
| const RATE_LIMIT_DELAY = 500; // milliseconds between requests | |
| const BATCH_SIZE = 100; // posts per request | |
| const OUTPUT_FILE = "bluesky-feed.json"; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| require('@skatejs/ssr/register'); | |
| const render = require('@skatejs/ssr'); | |
| const minify = require('html-minifier-terser').minify; | |
| const url = require('url'); | |
| const path = require('path'); | |
| const fs = require('fs'); | |
| // index.js is a bundle of the client-side app that includes a const routes, example below: | |
| // const routes = [ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| meta { | |
| -theme-interface-name: "Dark Template"; | |
| -theme-interface-style: dark; | |
| -theme-accent-color: auto; | |
| } | |
| /* | |
| * Window styles | |
| */ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // requestPath returns a string formatted for different environments | |
| import { requestPath } from '../config'; | |
| function uuidv4() { | |
| return 'xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx'.replace(/[xy]/g, function(c) { | |
| var r = Math.random() * 16 | 0, v = c == 'x' ? r : (r & 0x3 | 0x8); | |
| return v.toString(16); | |
| }); | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| let uuid = function() { | |
| return 'xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx'.replace(/[xy]/g, function(c) { | |
| let r = Math.random() * 16 | 0, v = c === 'x' ? r : ( r & 0x3 | 0x8 ); | |
| return v.toString(16); | |
| }); | |
| }; | |
| let defaultRoom = function() { | |
| let text = ''; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| hljs.registerLanguage('javascript', function (hljs) { | |
| return { | |
| aliases: ['js'], | |
| keywords: { | |
| keyword: | |
| 'in of if for while finally var new function do return void else break catch ' + | |
| 'instanceof with throw case default try this switch continue typeof delete ' + | |
| 'let yield const export super debugger as async await ' + | |
| // ECMAScript 6 modules import | |
| 'import from as' |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import { Directive, ElementRef, AfterViewInit } from '@angular/core'; | |
| import { WindowRef } from './../../injectables/window/window.service'; | |
| import { PerspectiveCamera, Scene, WebGLRenderer, BoxGeometry, MeshNormalMaterial, Mesh } from 'three'; | |
| @Directive({ | |
| selector: '[threeCanvas]' | |
| }) | |
| export class ThreeCanvasDirective implements AfterViewInit { | |
| camera: PerspectiveCamera; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| export interface IGrid { | |
| col: number[], | |
| colSpan: number[], | |
| cols: number, | |
| gutter: number, | |
| margin: number, | |
| width: number, | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| let element = document.querySelector(‘.button’); | |
| getComputedStyle(element).getPropertyValue(“ — button-bg-color”) // returns #FF00FF |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| :root { | |
| —button-bg-color: #FF00FF; | |
| } | |
| .button { | |
| color: white; | |
| background-color: var( —button-bg-color); | |
| display: inline-block; | |
| padding: 4px; | |
| width: auto; |
NewerOlder