Skip to content

Instantly share code, notes, and snippets.

View guiathayde's full-sized avatar
🚀
Flying high

Guilherme Athayde guiathayde

🚀
Flying high
View GitHub Profile
@binki
binki / post-file.js
Last active October 4, 2023 14:35
posting a file loaded through fs.readFile() through axios+form-data
#!/usr/bin/env node
const axios = require('axios');
const FormData = require('form-data');
const fs = require('fs');
const filePath = __dirname + '/../accept-http-post-file/cookie.jpg';
fs.readFile(filePath, (err, imageData) => {
if (err) {
throw err;
}
@prasathmani
prasathmani / upload-to-google-drive.py
Last active September 3, 2025 14:22
upload files to google drive using python
import requests
import json
from typing import Dict
# ==== CONFIGURATION ====
CLIENT_ID = '####'
CLIENT_SECRET = '####'
REFRESH_TOKEN = '####'
FOLDER_ID = '####'
UPLOAD_FILE = 'my-upload-test.zip' # Change this to your file
import PushNotificationIOS from '@react-native-community/push-notification-ios';
import { Platform } from 'react-native';
import PushNotification from 'react-native-push-notification';
class NotificationManager {
configure = () => {
PushNotification.configure({
onRegister: function (token: any) {
console.log('TOKEN:', token);
},
import { createContext, ReactNode, useEffect, useState } from 'react'
type Theme = 'light' | 'dark';
type ThemeContextProviderProps = {
children: ReactNode;
}
type ThemeContextType = {
theme: Theme;
@jackbkennedy
jackbkennedy / stitches-spinner.tsx
Last active May 24, 2023 14:31
stitches-spinner
// Full code - https://github.com/jackbkennedy/stitches-spinner
import { styled, keyframes } from "../stitches.config";
const spinner = keyframes({
to: {
transform: "rotate(360deg)",
},
});
export const Spinner = styled("div", {
@ggemre
ggemre / tsnode2tsx.md
Last active February 27, 2025 15:06
Migrating from ts-node to tsx

Beast Mode

Beast Mode is a custom chat mode for VS Code agent that adds an opinionated workflow to the agent, including use of a todo list, extensive internet research capabilities, planning, tool usage instructions and more. Designed to be used with 4.1, although it will work with any model.

Below you will find the Beast Mode prompt in various versions - starting with the most recent - 3.1

Installation Instructions

  • Go to the "agent" dropdown in VS Code chat sidebar and select "Configure Modes".
  • Select "Create new custom chat mode file"