Skip to content

Instantly share code, notes, and snippets.

View itsyogesh's full-sized avatar

Yogesh Kumar itsyogesh

View GitHub Profile
/**
* @file SuccessAnimation.tsx
* @description A polished success animation component built with Reanimated and react-native-svg.
* Displays a check icon inside a growing circle with a ripple effect and customizable particle bursts.
*
* @author itsyogesh
* @version 3.0
*/
import React, { useCallback, useEffect, useMemo } from 'react';
Verifying my Blockstack ID is secured with the address 1CtMWbye3LRNF3fPhTLXBq49pnbFpSRZjc https://explorer.blockstack.org/address/1CtMWbye3LRNF3fPhTLXBq49pnbFpSRZjc
/*
The https://api.github.com/zen endpoint randomly returns different text when called with a GET request (e.g. “Keep it logically awesome”). Write code in any language that calls this endpoint until you have 3 unique messages, and output those messages.
You can assume you have access to a function `get()` that performs the `GET` call for you.
Note: this endpoint is rate-limited; do be careful not to exceed the limit lest it slow you down.
Base level expectations:
Code correctness
Code readability
@itsyogesh
itsyogesh / webpack.sample.config.js
Last active January 17, 2017 11:38
A webpack 2 file with all the descriptions as comments.
const path = require('path')
module.exports = {
context: __dirname, // Come here everytime, the project starts here
entry: './js/client_app.js', // Where should you look your starting JS file
devtool: 'source-map', // Tell me where exactly in source my error is happening
output: {
path: path.join(__dirname, '/public'), // Output it the public path
filename: 'bundle.js' // Name it this
},
#!/bin/bash
# Prevents a push directly to master.
#
# Author : abhideep@ (Abhideep Singh)
# Check if we actually have commits to push
commits=`git log @{u}..`
if [ -z "$commits" ]; then
exit 0
from users.models import CustomUser as User
from django.contrib.auth.hashers import make_password
from tastypie.authentication import (
Authentication, ApiKeyAuthentication, BasicAuthentication,
MultiAuthentication)
from tastypie.authorization import Authorization
from tastypie.resources import ModelResource
from tastypie import fields