Skip to content

Instantly share code, notes, and snippets.

View ShivamJoker's full-sized avatar
🐢
Code for life

Shivam ShivamJoker

🐢
Code for life
View GitHub Profile
<motion.div
initial={{ opacity: 0, scale: .8}}
animate={{ opacity: 1, scale: 1 }}
exit={{ opacity: 0, scale: .8 }}
>
<List>
{renderResult}
</List>
</motion.div>
export const useDownloadSong = (songId) => {
const { setSnackbarMsg } = useContext(GlobalContext);
const handleDownload = async (songId) => {
console.log("here is the id", songId)
const res = await getAudioLink.get("/song", {
params: { id: songId }
});
// first we will fetch the song link then we will download it
// the download song function takes id and the url
import React, { useState } from "react";
import {
StyleSheet,
Text,
View,
Button,
ToastAndroid,
TouchableWithoutFeedback
} from "react-native";
var moment = require("moment");
/*
Minimal Esp8266 Websockets Server
This sketch:
1. Connects to a WiFi network
2. Starts a websocket server on port 80
3. Waits for connections
4. Once a client connects, it wait for a message from the client
5. Sends an "echo" message to the client
6. closes the connection and goes back to step 3
import sys
sys.path.append('..')
import keyboard
def print_pressed_keys(e):
line = ', '.join(str(code) for code in keyboard._pressed_events)
# '\r' and end='' overwrites the previous line.
# ' '*40 prints 40 spaces at the end to ensure the previous line is cleared.
print('\r' + line + ' '*40, end='')
#include <stdio.h>
#include <stdbool.h>
#include <string.h>
#include <unistd.h>
int todosLength = 0;
FILE *fp;
struct Todo
{
import tkinter as tk
from pynput import keyboard
root = tk.Tk()
root.title("WiFi Remote")
root.geometry("600x400")
root.resizable(0, 0)
focusedtEntry = 0
server {
# root /var/www/notifyer.xyz/html;
#index index.html index.htm index.nginx-debian.html;
server_name notifyer.xyz www.notifyer.xyz;
location / {
proxy_pass http://localhost:5000;
proxy_http_version 1.1;
{"v":"5.6.5","fr":29.9700012207031,"ip":0,"op":25.0000010182709,"w":500,"h":500,"nm":"sun moon","ddd":0,"assets":[{"id":"comp_0","layers":[{"ddd":0,"ind":1,"ty":4,"nm":"cover","td":1,"sr":1,"ks":{"o":{"a":0,"k":100,"ix":11},"r":{"a":0,"k":0,"ix":10},"p":{"a":0,"k":[247.656,246.235,0],"ix":2},"a":{"a":0,"k":[62,83,0],"ix":1},"s":{"a":0,"k":[100,100,100],"ix":6}},"ao":0,"shapes":[{"ty":"gr","it":[{"d":1,"ty":"el","s":{"a":0,"k":[382.051,382.051],"ix":2},"p":{"a":1,"k":[{"i":{"x":0.667,"y":1},"o":{"x":0.333,"y":0},"t":0,"s":[0,0],"to":[-40.333,22],"ti":[40.333,-22]},{"t":17.0000006924242,"s":[-242,132]}],"ix":3},"nm":"Ellipse Path 1","mn":"ADBE Vector Shape - Ellipse","hd":false},{"ty":"st","c":{"a":0,"k":[1,1,1,1],"ix":3},"o":{"a":0,"k":100,"ix":4},"w":{"a":0,"k":2,"ix":5},"lc":1,"lj":1,"ml":4,"bm":0,"nm":"Stroke 1","mn":"ADBE Vector Graphic - Stroke","hd":true},{"ty":"fl","c":{"a":0,"k":[0.145343122295,0.505901501225,1,1],"ix":4},"o":{"a":0,"k":100,"ix":5},"r":1,"bm":0,"nm":"Fill 1","mn":"ADBE Vector Graphic -
import React, {useRef, useEffect, useState} from 'react';
import {
View,
SafeAreaView,
Text,
Image,
FlatList,
Dimensions,
Animated,
StyleSheet,