Skip to content

Instantly share code, notes, and snippets.

View Developerayo's full-sized avatar
🐾
probably nothing

Shodipo Ayomide Developerayo

🐾
probably nothing
View GitHub Profile
@Developerayo
Developerayo / if-correct-recursion.js
Created February 19, 2018 18:50 — forked from chalu/if-correct-recursion.js
A number of countdown implementations to review
const countdownA = (limit) => {
for(let i = limit; i >= 1; i--) {
console.log('Now @ ' + i);
}
};
const countdownB = (limit) => {
console.log('Now @ ' + limit);
if (limit === 1) return 1;
@Developerayo
Developerayo / gist:b44ab064338e22025d1f6d95460af6d2
Created February 22, 2019 22:16
netlify error deployment
1:59:27 PM: Build ready to start
1:59:29 PM: build-image version: 84aca9ba39e0ee86ba194760fbfc51a808f62543
1:59:29 PM: buildbot version: 1ac64ca11e029436ed45ac81a38b9839778ec314
1:59:29 PM: Fetching cached dependencies
1:59:29 PM: Failed to fetch cache, continuing with build
1:59:29 PM: Starting to prepare the repo for build
1:59:30 PM: No cached dependencies found. Cloning fresh repo
1:59:30 PM: git clone https://github.com/Developerayo/shodipoayomide.com
1:59:31 PM: Preparing Git Reference refs/heads/master
1:59:31 PM: Starting build script
@Developerayo
Developerayo / package.json
Last active February 22, 2019 22:18
package.json for gatsby blog
{
"name": "developerayo",
"private": true,
"description": "developerayo",
"version": "8.10.0",
"author": "Shodipo Ayomide <shodipovi@gmail.com>",
"bugs": {
"url": "https://github.com/developerayo/shodipoayomide.com/issues"
},
"dependencies": {
@Developerayo
Developerayo / footer.js
Last active February 27, 2019 12:26
Image not displaying as called gatsby
"dependencies": {
"gatsby": "^2.0.76",
"gatsby-plugin-catch-links": "^2.0.9",
"gatsby-plugin-feed": "^2.0.8",
"gatsby-plugin-google-analytics": "^2.0.5",
"gatsby-plugin-i18n": "^0.4.2",
"gatsby-plugin-manifest": "^2.0.5",
"gatsby-plugin-offline": "^2.0.5",
"gatsby-plugin-react-helmet": "^3.0.0",
"gatsby-plugin-sharp": "^2.0.16",
@Developerayo
Developerayo / switch-case.c
Last active April 10, 2019 09:07
Switch case example in C++
#include <iostream>
using namespace std;
int main () {
// local variable declaration:
char grade = 'D';
switch(grade) {
case 'A' :
cout << "Excellent!" << endl;
import React from 'react';
import { Mutation } from 'react-apollo';
import { adopt } from 'react-adopt';
import { gql } from 'apollo-boost';
const INCREASE_COUNT = gql`
mutation increaseCount {
increaseCount {
id
currentCount
import {InMemoryCache} from 'apollo-cache-inmemory';
import {ApolloLink} from 'apollo-client-preset';
import {ApolloClient} from 'apollo-client';
import {withClientState} from 'apollo-link-state';
import gql from 'graphql-tag';
import {graphql} from 'react-apollo';
import compose from 'recompose/compose';
/*
Defaults
@Developerayo
Developerayo / now.json
Last active July 30, 2019 12:52
for php deployment
{
"version": 2,
"name": "Linksnest",
"builds": [{ "src": "index.php", "use": "@now/php" }],
"routes": [
{ "src": ".*.php$", "dest": "index.php" }
]
}
Included files: [ 'vendor/stripe/stripe-php/.travis.yml',
'vendor/paypal/rest-api-sdk-php/lib/PayPal/Api/Webhook.php',
'template/js/tinymce/plugins/wordcount/plugin.min.js',
'template/js/tinymce/plugins/charmap/plugin.min.js',
'vendor/stripe/stripe-php/lib/SingletonApiResource.php',
'vendor/stripe/stripe-php/tests/Stripe/SourceTest.php',
'vendor/google/recaptcha/tests/ReCaptcha/RequestParametersTest.php',
'vendor/phpmailer/phpmailer/language/phpmailer.lang-vi.php',
'vendor/google/recaptcha/tests/ReCaptcha/RequestMethod/SocketPostTest.php',
'vendor/paypal/rest-api-sdk-php/lib/PayPal/Api/ShippingInfo.php',