Skip to content

Instantly share code, notes, and snippets.

View shakdaniel's full-sized avatar
👀
Looking for work

Shak Daniel shakdaniel

👀
Looking for work
View GitHub Profile
@shakdaniel
shakdaniel / routes.js
Created March 30, 2020 19:38
[React Routes] Routes
function App() {
let element = useRoutes([
// These are the same as the props you provide to <Route>
{ path: '/', element: <Home /> },
{ path: 'dashboard', element: <Dashboard /> },
{ path: 'invoices',
element: <Invoices />,
// Nested routes use a children property, which is also
// the same as <Route>
children: [
@shakdaniel
shakdaniel / readme.md
Last active March 20, 2020 16:37
[Dev Env Cmds] Local Dev Setup
$ sudo apachectl start
$ sudo apachectl stop
$ sudo apachectl -k restart

PHP Switcher Script

@shakdaniel
shakdaniel / settings.json
Created February 21, 2020 16:14
[Editor] Settings
{
"editor.minimap.enabled": false,
"editor.fontSize": 15,
"editor.tabSize": 2,
"terminal.integrated.shell.osx": "/bin/zsh",
"editor.fontFamily": "Fira Code",
"editor.fontLigatures": true,
"workbench.activityBar.visible": true,
"workbench.statusBar.visible": true,
"workbench.colorTheme": "One Monokai",
@shakdaniel
shakdaniel / markdown.jsx
Last active February 5, 2020 14:23
[Markdown to jsx] impliment .md file into react compnent. #React
// https://probablyup.com/markdown-to-jsx/
// npm install -D markdown-to-jsx
// yarn add -D markdown-to-jsx
import React, { Component } from 'react'
import Markdown from 'markdown-to-jsx';
import README from './README.md'
class PageComponent extends Component {
constructor(props) {
@shakdaniel
shakdaniel / gulpfile.js
Last active September 17, 2021 02:48
Gulpfile for my workflow.
// npm install --save-dev gulp gulp-jade gulp-stylus gulp-autoprefixer gulp-minify-css gulp-jshint jshint-stylish gulp-uglify gulp-concat gulp-imagemin imagemin-pngcrush gulp-rename gulp-clean gulp-newer gulp-filesize gulp-size gulp-notify browser-sync
// GULP DEPENDENCIES & PLUGINS
var gulp = require('gulp'),
jade = require('gulp-jade'),
stylus = require('gulp-stylus'),
prefix = require('gulp-autoprefixer'),
mincss = require('gulp-minify-css'),
jshint = require('gulp-jshint'),
stylish = require('jshint-stylish'),