Skip to content

Instantly share code, notes, and snippets.

View justinecodez's full-sized avatar
🎯
Focusing

Justine Mahinyila justinecodez

🎯
Focusing
View GitHub Profile
import React from 'react'
import {
ActivityIndicator,
} from 'react-native'
const CustomButton = ({
}) => {
const [loading, setIsLoading] = useState(false)
const express = require('express');
const fetch = require('node-fetch')
const app = express();
app.use(express.json());
app.use(express.urlencoded({ extended: false }));
const urls = [
"http://www.google.com",
"http://www.facebook.com",
"http://www.twitter.com"
@justinecodez
justinecodez / composer.json
Created March 1, 2021 09:57 — forked from andyshinn/composer.json
Docker Compose PHP Composer Example
{
"require": {
"mfacenet/hello-world": "v1.*"
}
}
@justinecodez
justinecodez / .gitignore
Created November 9, 2020 19:51 — forked from salcode/.gitignore
Please see https://salferrarello.com/wordpress-gitignore/ for the canonical version of this WordPress .gitignore file. Note: I do not receive notifications for comments here (because GitHub does not send notifications on Gists)
# -----------------------------------------------------------------
# .gitignore for WordPress @salcode
# ver 20180808
#
# From the root of your project run
# curl -O https://gist.githubusercontent.com/salcode/b515f520d3f8207ecd04/raw/.gitignore
# to download this file
#
# By default all files are ignored. You'll need to whitelist
# any mu-plugins, plugins, or themes you want to include in the repo.
<!DOCTYPE html>
<html lang="en">
<head>
<!-- Required meta tags -->
<meta charset="utf-8" />
<meta
name="viewport"
content="width=device-width, initial-scale=1, shrink-to-fit=no"
/>
@justinecodez
justinecodez / Option A
Created July 31, 2019 10:39 — forked from udacityandroid/Option A
Android Development for Beginners : Calculate the Price Method
/**
* Calculates the price of the order based on the current quantity.
*
* @return the price
*/
private int calculate price(int quantity {
int price = quantity * 5;
return price;
}
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<meta http-equiv="X-UA-Compatible" content="ie=edge" />
<title>Mini App</title>
<style>
body {
margin: 0;
@justinecodez
justinecodez / index.js
Last active March 28, 2019 18:56
Searching for files containing a specific word in a given directory with node js
const path = require('path');
const fs = require('fs');
//dir parameter is for directory path
function searchFilesInDirectory(dir, filter, ext) {
if (!fs.existsSync(dir)) {
console.log(`Specified directory: ${dir} does not exist`);
return;
}