Skip to content

Instantly share code, notes, and snippets.

View manuelgeek's full-sized avatar
😎
#mANuEl💯

Magak Emmanuel manuelgeek

😎
#mANuEl💯
View GitHub Profile
@manuelgeek
manuelgeek / date.js
Last active July 12, 2019 12:42
js date function to get day of birth from date string
dates(){
var j = new Array("Sunday", "Monday", "Tuesday", "Wednesday", "Thursday", "Friday", "Saturday");
var dateString = "05/14/2019"; // date
var d = new Date(dateString);
var day = j[d.getDay()];
let gender = 'male' //female
switch(gender) {
case 'male':
if (day === j[0]){
@manuelgeek
manuelgeek / app.js
Last active June 7, 2019 11:42
my app.js
/**
* First we will load all of this project's JavaScript dependencies which
* includes Vue and other libraries. It is a great starting point when
* building robust, powerful web applications using Vue and Laravel.
*/
import {initialize} from "./helpers/general";
require('./bootstrap');
import Vue from 'vue';
@manuelgeek
manuelgeek / List.spec.js
Last active June 6, 2019 18:45
GTT unit test
import List from '@/components/List';
import Vue from 'vue';
describe('List.vue', () => {
it('displays items from the list', () => {
const Constructor = Vue.extend(List);
const ListComponent = new Constructor().$mount();
expect(ListComponent.$el.textContent).to.contain('read Java');
})
@manuelgeek
manuelgeek / a-coding-activity-last-30-days.png
Last active June 4, 2019 10:25
coding activity last 30 days
a-coding-activity-last-30-days.png
@manuelgeek
manuelgeek / a-coding-languages.png
Last active June 4, 2019 10:19
coding languages last 30 days
a-coding-languages.png
@manuelgeek
manuelgeek / vscode.json
Created May 25, 2019 21:53
VS Code settings
{
"workbench.startupEditor": "newUntitledFile",
"workbench.colorTheme": "Material Theme",
"terminal.integrated.fontSize": 12,
"editor.wordWrap": "on",
"vetur.format.options.tabSize": 4,
"vetur.format.options.useTabs": true,
"vetur.format.scriptInitialIndent": true,
"vetur.format.styleInitialIndent": true,
"editor.detectIndentation": false

The MIT License (MIT)

Copyright (c) 2016 SmoDav

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

@manuelgeek
manuelgeek / README-Template.md
Created April 30, 2019 09:33 — forked from PurpleBooth/README-Template.md
A template to make good README.md

Project Title

One Paragraph of project description goes here

Getting Started

These instructions will get you a copy of the project up and running on your local machine for development and testing purposes. See deployment for notes on how to deploy the project on a live system.

Prerequisites

/**
* First we will load all of this project's JavaScript dependencies which
* includes Vue and other libraries. It is a great starting point when
* building robust, powerful web applications using Vue and Laravel.
*/
import {initialize} from "./helpers/general";
require('./bootstrap');
sudo chmod -R a+w storage/app
sudo chmod -R a+w storage/framework
sudo chmod -R a+w storage/logs
sudo chmod -R a+w storage/cache
sudo chmod -R a+w bootstrap/cache
sudo chmod -R a+w .env
sudo chown -R www-data storage/app
sudo chown -R www-data storage/framework