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
// 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", { |
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 { createContext, ReactNode, useEffect, useState } from 'react' | |
type Theme = 'light' | 'dark'; | |
type ThemeContextProviderProps = { | |
children: ReactNode; | |
} | |
type ThemeContextType = { | |
theme: Theme; |
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 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); | |
}, |
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 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; | |
} |