This file will setup Wordpress, MySQL & PHPMyAdmin with a single command. Add the code below to a file called "docker-compose.yaml" and run the command
$ docker-compose up -d
# To Tear Down
$ docker-compose down --volumes
<!DOCTYPE html> | |
<html lang="en"> | |
<head> | |
<title>Alpine.js Todo Demo</title> | |
<link href="https://unpkg.com/tailwindcss@^1.0/dist/tailwind.min.css" rel="stylesheet"> | |
<script src="https://cdn.jsdelivr.net/gh/alpinejs/[email protected]/dist/alpine.js" defer></script> | |
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/@tailwindcss/ui@latest/dist/tailwind-ui.min.css"> | |
<meta charset="utf-8"> | |
</head> |
import React, { Component } from "react"; | |
import { useEffect, useState } from "react"; | |
function createLoadReducer() { | |
return (state = { loading: false }, action) => { | |
switch (action.type) { | |
case "LOADING": | |
return { loading: true }; | |
case "ERROR": | |
return { loading: false, error: action.data }; |
$ git remote rm origin | |
$ git remote add origin [email protected]:aplikacjainfo/proj1.git | |
$ git config master.remote origin | |
$ git config master.merge refs/heads/master |
A curated list of AWS resources to prepare for the AWS Certifications
A curated list of awesome AWS resources you need to prepare for the all 5 AWS Certifications. This gist will include: open source repos, blogs & blogposts, ebooks, PDF, whitepapers, video courses, free lecture, slides, sample test and many other resources.
<?php | |
/** | |
* Plugin Name: Tons Of Fun for Nick | |
* Plugin URI: https://yourmom.com | |
* Description: A Drop In Plugin That'll speed the sh_t outta your site. No options, just ACTIVE or INCACTIVE :-) | |
* Version: 1 | |
* Author: Brad | |
* Author URI: https://yourmom.com | |
* Requires at least: 4.5 | |
* Tested up to: 4.5 |
JQuery + CSS code to make a simple rating widget based on Fontawesome. Nothing fancy but I don't want to figure out how to do it again.
Based on the example found here: http://css-tricks.com/star-ratings/ which unfortunately provides only CSS and no actual functionality.
See it on Plunker: https://plnkr.co/vptHYAnWHMbX2LfR6a02
I have two Github accounts: oanhnn (personal) and superman (for work). I want to use both accounts on same computer (without typing password everytime, when doing git push or pull).
Use ssh keys and define host aliases in ssh config file (each alias for an account).
/** | |
*@author Mahadir Ahmad | |
*Revision | |
* 22/11/2015 - Able to grab lesson or series | |
* | |
* Laracast Video download link grabber | |
* This script is used with IDM | |
* 0. Visit any laracast series (eg: https://laracasts.com/series/whats-new-in-laravel-5-1/episodes/1) | |
* 1. Open Chrome console | |
* 2. paste this script and hit enter |