Skip to content

Instantly share code, notes, and snippets.

View amandeepmittal's full-sized avatar

Aman Mittal amandeepmittal

View GitHub Profile
@jpalala
jpalala / react_samples_list.md
Last active April 2, 2023 22:22 — forked from leecade/react_samples_list.md
React Samples List
@ronnyhartenstein
ronnyhartenstein / index.ios.js
Last active July 17, 2023 10:14
React Navigation: Parallel Navigators in React Native in a nutshell
import React from 'react'
import { AppRegistry } from 'react-native'
import setup from './setup'
AppRegistry.registerComponent('ReactNavigationTest', setup)
@chourobin
chourobin / 0-bridging-react-native-cheatsheet.md
Last active May 4, 2024 14:06
React Native Bridging Cheatsheet
@boniattirodrigo
boniattirodrigo / login.js
Created June 25, 2017 18:44
A simple process to get, store and delete values from AsyncStorage.
import React, { Component } from 'react'
import {
View,
AsyncStorage,
TouchableHighlight,
Text,
StyleSheet,
} from 'react-native'
@tunguskha
tunguskha / Gradient shadow in pure CSS.md
Last active May 4, 2023 06:40
Gradient shadow in pure CSS

Gradient shadow in pure CSS

alt text

HTML
<button>Let's Go !</button>
@levelsio
levelsio / makebook_obfuscate.php
Last active April 20, 2024 01:51
Obfuscate your ebook so that people who didn't pay can read it, partly
<?php
/*
I wrote this function to progressively obfuscate text in MAKEbook.io. When it KINDA worked, I just used it.
It can take a lot of improvement. I kinda just tweaked the values until it was good enough. It's not SO progressive though.
It takes all the output of your PHP scripts via ob_start(), reroutes that to the obfuscation function.
You should check if user paid for book or not, then either run ob_start or not!
@aurorabbit
aurorabbit / progress.10s.sh
Last active August 5, 2020 00:16
Bitbar timely progress bar
#!/bin/sh
# add this to your bitbar directory
# don't forget to chmod +x
# width and characters for the progress bars
# feel free to configure these
width=30
fill_char="█"
empty_char="▁"
@charlesxsh
charlesxsh / CustomReactNavigationTabbar.tsx
Last active June 22, 2020 01:40
Customize tab bar in react native using react navigation
import React from 'react';
import { Component } from 'react';
import {
TouchableOpacity,
Text,
View,
Image
} from 'react-native';
import { TabBarBottomProps, NavigationRoute } from 'react-navigation';
@brunolemos
brunolemos / App.tsx
Last active January 14, 2021 05:07
react-native-safe-area-context
import React from 'react'
import { StatusBar, Text, View } from 'react-native'
import { useSafeArea } from 'react-native-safe-area-context'
export function App() {
const safeAreaInsets = useSafeArea()
return (
<View
style={{