Skip to content

Instantly share code, notes, and snippets.

View Billmike's full-sized avatar
🗽
Working remotely

Ayelegun Kayode Michael Billmike

🗽
Working remotely
  • Lagos, Nigeria
View GitHub Profile
const domesticAnimals = [‘Cows’, ‘Sheep’, ‘Goat’];
const notSoDomesticAnimals = [‘Salamander’, ‘Iguana’, ‘Moth’, ‘Sloth’];
const newAnimalsArray = domesticAnimals.concat(notSoDomesticAnimals);
const newAnimalsArray = [ …domesticAnimals, …notSoDomesticAnimals];
const notSoDomesticAnimals = ['Salamander', 'Iguana', 'Moth', 'Sloth'];
const [salamander, iguana, …rest] = notSoDomesticAnimals;
const addAllNumers = (…args) => {
let result = 0;
for (let i = 0; i < args.length; i += 1) {
result += args[i];
}
return result;
}
class Events {
/**
* Adds an event to the database
*
* @param {object} request - The request object
* @param {object} response - The response object
*
* @returns {object} The event object
*/
static addEvent(request, response) {
const layouts = [
{
id: "column",
name: "Column",
layout: {
container: {
flexDirection: "column",
justifyContent: "center",
alignItems: "center"
}
import * as React from "react";
import { View, SafeAreaView, StyleSheet, Text } from "react-native";
import { RectButton } from "react-native-gesture-handler";
import StyleGuide from "./StyleGuide";
import CheckIcon, { CHECK_ICON_SIZE } from "./CheckIcon";
const styles = StyleSheet.create({
buttonContainer: {
borderBottomWidth: 1,
borderColor: "#f4f6f3"
import * as React from "react";
import { View, StyleSheet } from "react-native";
import { Feather as Icon } from "@expo/vector-icons";
export const CHECK_ICON_SIZE = 35;
const styles = StyleSheet.create({
container: {
width: CHECK_ICON_SIZE,
height: CHECK_ICON_SIZE,
borderRadius: CHECK_ICON_SIZE / 2,
def func1():
print("I am a function")
func1() # I am a function
print(func1()) # I am a function None
print(func1) # <function func1 at 0x102a3a210>