Skip to content

Instantly share code, notes, and snippets.

View shukerullah's full-sized avatar
🎮
Busy

Pir Shukarullah Shah shukerullah

🎮
Busy
View GitHub Profile
@shukerullah
shukerullah / 1-common-words-and-phrases.md
Last active December 17, 2022 16:39
Here’s some common terminology you’ll hear throughout your career as a game developer, including game genres and terms you’ll find in Unity.

Common words and phrases

If you’re a fan of gaming and like to keep up with industry news, you’re probably fairly familiar with some of the terminology you’ll find here. But if you’re new to game development or need a refresher, this list of words and terms should come in handy when you’re participating in online discussions, diving into learning resources, and using Unity.

@shukerullah
shukerullah / UISpriteAnimation.cs
Last active October 20, 2020 15:07
Unity (Canvas) UI.Image Sprite Animation
using UnityEngine;
using UnityEngine.UI;
using UnityEngine.Events;
[RequireComponent(typeof(Image))]
public class UISpriteAnimation : MonoBehaviour {
public Sprite[] sprites;
public int fps = 6;
@shukerullah
shukerullah / add_flow.sh
Last active September 5, 2020 11:05
Adding @flow to the top of Javascript multiple files
#!/bin/bash
# Based on http://stackoverflow.com/questions/151677/tool-for-adding-license-headers-to-source-files
for i in src/*.js src/*/*.js src/*/*/*.js src/*/*/*/*.js src/*/*/*/*/*.js
do
if ! grep -q @flow $i
then
(echo -e $"/**\n * @format\n * @flow\n */\n") > flowificator
cat flowificator $i >$i.new && mv $i.new $i
rm flowificator
@shukerullah
shukerullah / ReCaptcha.js
Last active May 31, 2020 19:56
A react native wrapper for google invisible reCAPTCHA v3
import React from 'react';
import {WebView} from 'react-native-webview';
const getReCaptchaContent = (captchaKey, action) => {
const webForm = `<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8" />
<meta
name="viewport"
@shukerullah
shukerullah / react_native_cache_clean.sh
Created July 24, 2018 06:02
React-Native clear Watchman + Cache (npm & yarn)
watchman watch-del-all && rm -rf $TMPDIR/react-* && rm -rf node_modules/ && npm cache verify && yarn cache clean && yarn install && yarn start --reset-cache
@shukerullah
shukerullah / Progress Bar.js
Last active September 3, 2022 14:27
React Native Animated Progress Bar
import PropTypes from 'prop-types';
import React from 'react';
import {
View,
Easing,
Animated,
StyleSheet,
Dimensions,
ViewPropTypes,
} from 'react-native';
@shukerullah
shukerullah / VSCodeSettings.md
Last active October 4, 2023 15:10
Visual Studio Code settings for React Native

React Native VSCode Settings

Visual Studio Code is a code editor redefined and optimized for building and debugging modern web and cloud applications. Visual Studio Code is free and available on your favorite platform - Linux, Mac OSX, and Windows.

This module will install visual studio code essential extensions and settings for react-native.

Run react-native-vscode-settings

npx react-native-vscode-settings
@shukerullah
shukerullah / watchman.sh
Last active December 21, 2017 12:45
Setup Watchman on Ubuntu
$ cd ~
$ git clone https://github.com/facebook/watchman.git
$ cd watchman/
$ git checkout v4.7.0
$ sudo apt-get install -y autoconf automake build-essential python-dev
$ ./autogen.sh
$ ./configure
$ make
$ sudo make install
@shukerullah
shukerullah / watchmanShutdownServer.sh
Last active April 28, 2017 12:31
ERROR A non-recoverable condition has triggered. Watchman needs your help!
echo 256 | sudo tee -a /proc/sys/fs/inotify/max_user_instances
echo 32768 | sudo tee -a /proc/sys/fs/inotify/max_queued_events
echo 65536 | sudo tee -a /proc/sys/fs/inotify/max_user_watches
watchman shutdown-server
@shukerullah
shukerullah / removeAtom.sh
Last active April 27, 2017 14:28
Remove Atom Editor on MAC
rm -rf ~/.atom
rm -rf /usr/local/bin/atom
rm -rf /usr/local/bin/apm
rm -rf /Applications/Atom.app
rm -rf ~/Library/Preferences/com.github.atom.plist
rm -rf "~/Library/Application Support/com.github.atom.ShipIt"
rm -rf "~/Library/Application Support/Atom"
rm -rf "~/Library/Saved Application State/com.github.atom.savedState"
rm -rf ~/Library/Caches/com.github.atom
rm -rf ~/Library/Caches/Atom