I hereby claim:
- I am samermurad on github.
- I am samermurad (https://keybase.io/samermurad) on keybase.
- I have a public key ASBT9YNuSzPnwnxv1eLOT3iK1d5u1JHHtZSq_cpLn1eRYgo
To claim this, I am signing this object:
for (NSString* famName in [UIFont familyNames]) { | |
NSLog(@"== %@",famName); | |
for (NSString* nameInFam in [UIFont fontNamesForFamilyName:famName]) { | |
NSLog(@"==== %@",nameInFam); | |
} | |
} |
/** | |
* Copyright (c) 2015-present, Facebook, Inc. | |
* All rights reserved. | |
* | |
* This source code is licensed under the BSD-style license found in the | |
* LICENSE file in the root directory of this source tree. An additional grant | |
* of patent rights can be found in the PATENTS file in the same directory. | |
*/ | |
#import "RCTWebView.h" |
I hereby claim:
To claim this, I am signing this object:
#!/bin/sh | |
gitHash=$(/usr/libexec/PlistBuddy -c "Print :GitHash" "${PROJECT_DIR}/${INFOPLIST_FILE}") | |
exitCode=$? | |
if [ $exitCode == 0 ]; then | |
gitHash=$(git rev-parse HEAD | cut -c1-10) | |
/usr/libexec/PlistBuddy -c "Set :GitHash $gitHash" "${PROJECT_DIR}/${INFOPLIST_FILE}" | |
else | |
gitHash=$(git rev-parse HEAD | cut -c1-10) | |
/usr/libexec/PlistBuddy -c "Add :GitHash string $gitHash" "${PROJECT_DIR}/${INFOPLIST_FILE}" | |
fi |
import React, { Component } from 'react' | |
import { View, TouchableOpacity, StyleSheet,Image,Animated, Platform, BackHandler, Button } from 'react-native' | |
import { connect } from 'react-redux' | |
import {Actions} from 'react-native-router-flux' | |
import { colors,fonts,images, styles as appStyles } from '../assets' | |
import { Screen, NAVIGATION_BAR_HEIGHT, STATUS_BAR_HEIGHT } from '../consts' | |
import { mediaType } from '../enums' | |
import Interactable from 'react-native-interactable' | |
import { CachedImage } from 'react-native-cached-image' | |
import { Player as AudioPlayer } from 'react-native-audio-toolkit' |
const crypto = require('crypto'); | |
const TAG = 'cryptor || ' | |
/** | |
* @typedef CryptResult | |
* @property {string} iv | |
* @property {string} crypt | |
*/ |
const requrest = require('request') | |
const BOT_TOKEN = '<YOUR_TOKEN_HERE>' | |
const CHAT_ID = 0 // <YOUR_CHAT_ID> | |
const tmMsg = (text) => { | |
const options = { | |
method: 'POST', | |
url: `https://api.telegram.org/bot${BOT_TOKEN}/sendMessage`, | |
headers: { 'Content-Type': 'application/json' }, | |
body: JSON.stringify({ chat_id: CHAT_ID, text }) |
<!DOCTYPE html> | |
<html> | |
<head> | |
<title> Test Progress</title> | |
</head> | |
<style type="text/css"> | |
.progress { | |
position: relative; | |
display: flex; | |
height: 100px; |
// Written by Samer Murad | |
const path = require('path'); | |
const fs = require('fs'); | |
const os = require('os'); | |
class TmpCache { | |
constructor(ID) { | |
this.FILE_ID = ID; |
const _ = require('lodash'); | |
/** | |
* File adds a "getNonNull" function to the set of the lodash functions | |
* function works exactly like `_.get` with one simple exception | |
* the _.getNonNull returns the default value for null values as well | |
* just make sure to require this file on your main js/ts file | |
* | |
* Example: | |
* var foo = { bar: undefined: bar1: null } | |
* with _.get: |