Skip to content

Instantly share code, notes, and snippets.

View HishamMubarak's full-sized avatar
🎯
Focusing

Hisham Mubarak HishamMubarak

🎯
Focusing
View GitHub Profile
@HishamMubarak
HishamMubarak / reset.html
Created May 25, 2017 07:24
Password Reset Form
<script>
function confirm() {
var pass1 = document.getElementById("passOne").value;
var pass2 = document.getElementById("passTwo").value;
if (pass1 != pass2) {
document.getElementById("passOne").style.borderColor = "#E34234";
document.getElementById("passTwo").style.borderColor = "#E34234";
alert("Password Don't Match");
} else {
alert("Passwords Match");
@HishamMubarak
HishamMubarak / routes.js
Created April 6, 2018 08:44
Routes Page
import React from 'react'
import { TabNavigator, StackNavigator, TabBarBottom } from 'react-navigation';
import Splash from '../screens/Splash'
import Login from '../screens/Login'
import Home from '../screens/Home'
import Weather from '../screens/Weather'
import Details from '../screens/Details'
import Average from '../screens/Average'
import AverageGraph from '../screens/AverageGraph'
import React, { Component } from 'react';
import { Platform, StyleSheet, Text, View } from 'react-native';
import AppNavigator from './src/config/routes'
export default class App extends Component {
render() {
return (
<AppNavigator />
);
}
import { AppRegistry } from 'react-native';
import App from './App';
AppRegistry.registerComponent('weatherApp', () => App);
@HishamMubarak
HishamMubarak / decrypt.js
Last active April 10, 2023 12:24
node js code snippet to decrypt AES-GCM-256bit encrypted utm_content provided by facebook app ads install referral provided within install referrer content
const crypto = require('crypto')
const decryptData = async (installReferrerString, decryptionKey) => {
try {
const ALGORITHM = 'aes-256-gcm'
// Step 1: Decode the URI
const decodedUri = decodeURIComponent(installReferrerString)