This file contains 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 React from 'react'; | |
export function Td({id,children,className}){ | |
return ( | |
<td id={id} className={className ?? ''}> | |
{children} | |
</td> | |
) | |
} | |
export function Th({id,children,className}:{ |
This file contains 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
<?php | |
/** | |
* Plugin name: Josh412 | |
*/ | |
add_filer( 'show_admin_bar', '__return_false' ); | |
/** | |
* Category validation | |
*/ | |
add_filter('pre_insert_term',function( $term, $taxonomy, $args){ | |
$allowed_parents = [ |
This file contains 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
@tailwind base; | |
@tailwind components; | |
@tailwind utilities; | |
a { | |
@apply underline text-blue-800 hover:text-blue-400 visited:text-purple-800 | |
} |
This file contains 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
<?php | |
class Test extends TestCase { | |
public function test_function_that_makes_api_request(){ | |
add_filter('pre_http_request', function(){ | |
return [ | |
'body' => [ | |
'id' => 1, | |
], |
-
no code: https://track.goodfeeds.co/
-
No code: https://skyfeed.app/
-
With a little bit of code: https://github.com/jcsalterego/Contrails
-
With typescript, express, sqlite, etc. https://github.com/bluesky-social/feed-generator
-
https://bsky.app/profile/jakei.bsky.social/post/3jzxnrvequq2m
-
https://bossett.io/setting-up-bossetts-bluesky-feed-generator/
This file contains 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 async function sendSkeet({ text, agent, attatchments }: { | |
text: string, | |
agent: bsky.BskyAgent, | |
attatchments?: Attatchments, | |
}) { | |
const rt = new RichText({ text }); | |
await rt.detectFacets(agent); | |
const post: any = { | |
$type: 'app.bsky.feed.post', |
This file contains 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 bsky from '@atproto/api'; | |
const { BskyAgent, RichText } = bsky; | |
import * as dotenv from 'dotenv'; | |
import process from 'node:process'; | |
dotenv.config(); | |
const agent = new BskyAgent({ | |
service: 'https://bsky.social', | |
}); |
This file contains 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 { BskyAgent, AtpSessionEvent, AtpSessionData } from '@atproto/api' | |
//https://github.com/bluesky-social/atproto/tree/main/packages/api | |
const bsAgent = async () => { | |
const agent = new BskyAgent({ | |
service: 'https://bsky.app/', | |
persistSession: (evt: AtpSessionEvent, sess?: AtpSessionData) => { | |
// store the session-data for reuse | |
} |
This file contains 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
<?php | |
add_filter('get_default_comment_status', [ | |
IM_M_Comments::class, 'get_default_comment_status' | |
], 100, 3 ); | |
apply_filters( 'comments_open', [ | |
IM_M_Comments::class, 'comments_open' | |
], 100, 2 ); | |
class IM_M_Comments { |
NewerOlder