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
{ | |
"domain": "messages", | |
"locale_data": { | |
"messages": { | |
"": { | |
"domain": "messages" | |
}, | |
"This block contains unexpected or invalid content.": [ | |
"Poop, this block sucks now" | |
] |
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 Threader | |
{ | |
private array $tweets, $roots; | |
private string $user; | |
public function handle(): void | |
{ | |
echo "What is your twitter username? "; |
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 type { FunctionComponent } from "react"; | |
export const combineProviders = (providers: FunctionComponent[]) => providers.reduce( | |
(Combined, Provider) => ({ children }) => ( | |
<Combined> | |
<Provider>{children}</Provider> | |
</Combined> | |
), | |
); |
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 | |
namespace {{ factoryNamespace }}; | |
use Illuminate\Database\Eloquent\Factories\Factory; | |
use {{ namespacedModel }}; | |
/** | |
* @method {{ model }}|\Illuminate\Support\Collection<{{ model }}> create($attributes = [], ?Model $parent = null) | |
* @method \Illuminate\Support\Collection<{{ model }}> createMany(iterable $records) |
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
AWSTemplateFormatVersion: 2010-09-09 | |
Transform: | |
- AWS::Serverless-2016-10-31 | |
# Template Information | |
Description: "Personal Website" | |
# Template Parameters |
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
<? | |
// | |
// AUTO KEYWORD-BASED FOLLOWER CURATION BOT (by @levelsio) | |
// | |
// File: twitterFollowerCuratorBot.php | |
// | |
// Created: May 2021 | |
// License: MIT | |
// |
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
name: Pull Request Check | |
on: | |
workflow_dispatch: | |
inputs: | |
body: | |
default: "" | |
test: | |
default: "false" | |
pull_request_target: |
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
// recursively get all files in a folder | |
function* getAllFiles(dirPath: string): Iterable<string> { | |
for (const file of fs.readdirSync(dirPath)) { | |
const pathToCheck = path.join(dirPath, file); | |
if (fs.statSync(pathToCheck).isDirectory()) { | |
if (file !== 'node_modules') { | |
yield* getAllFiles(pathToCheck); | |
} | |
} else { | |
yield pathToCheck; |
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
// get all tweets from @prisma | |
from:prisma | |
// tweets between two accounts | |
from:ryanchenkie to:chris__sev | |
// tweets by a hashtag but only with images | |
#InaugurationDay filter:images | |
// keywords by people on a specific list |
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
#!/usr/bin/env ruby | |
# gem install active_support | |
require 'active_support/inflector' | |
require 'active_support/core_ext/string' | |
# gem install webrick (only ruby3) | |
require 'webrick' | |
# gem install mechanize |
NewerOlder