# Install git
sudo apt-get install git vim
# Add ondrej/php ppa
sudo apt-add-repository -y ppa:ondrej/php
# update package
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
# Author: przbadu | |
# email: przbadu.social@gmail.com | |
# github: github.com/przbadu | |
# update ubuntu | |
sudo apt-get update | |
# install vim, git, curl, tmux | |
sudo apt-get install vim git curl tmux | |
# install the silver searcher |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
tap 'caskroom/cask' | |
tap 'caskroom/fonts' | |
brew 'ack' | |
brew 'ctags' | |
brew 'git' | |
brew 'gdrive' | |
brew 'qt@5.5' | |
brew 'imagemagick' | |
brew 'vim' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html lang="en"> | |
<head> | |
<meta charset="UTF-8"> | |
<title>Form validation</title> | |
<script> | |
function validate() { | |
var name = document.getElementById('name').value; | |
var password = document.getElementById('password').value; | |
var email = document.getElementById('email').value; |
[
{ "keys": ["f6"], "command": "expand_fqcn" },
{ "keys": ["shift+f6"], "command": "expand_fqcn", "args": {"leading_separator": true} },
{ "keys": ["f5"], "command": "find_use" },
{ "keys": ["f4"], "command": "import_namespace" },
{ "keys": ["alt+ctrl+i"], "command": "reindent", "args": {"single_line": false}},
{ "keys": ["shift+f12"], "command": "goto_definition_scope" },
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
select * from ( | |
-- Male patients age between(0-9) | |
(select count(distinct patients.id) as total_male_patients_0_9 | |
from patients | |
INNER JOIN patient_histories | |
on patients.id=patient_histories.patient_id | |
where patient_histories.day=1 | |
AND patient_histories.month=1 | |
AND patient_histories.year=2074 | |
AND patients.gender="male" |
- Publish your project, Create new profile, set export path, select Release version over debug and then Publish
- Enable IIS feature:
a. search for program and feature (
Windows + R
(run dialog box) and typeservices.msc
and hit enter). b. Turn windows features on and off c. Internet Information System (IIS) d. Check Web Management tools -> IIS Management Console e. World Wide Web Services -> Check all (Application Development Features), Common HTTP Features and others as required. f. Click ok, and restart computer. g. sometimes this is not enough, as a safe side, run below commands
References:
https://github.com/docker/labs/
Check docker info, version, client and server versions, etc
docker info
docker --version
STEP 2: setup docker to run react app (dev and production) configuration: https://gist.github.com/przbadu/929fc2b0d5d4cd78a5efe76d37f891b6
Because we are using Docker
, we are not going to install node
, npm
, create-react-app
in our development machine, not even for generating create-react-app
scaffold.
For this purpose I am using 2-step docker configuration:
- In first step, we will create a simple docker container, that does only one thing, install
create-react-app
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Using try-catch to handle the JSON.parse error | |
function parse(str){ | |
try { | |
return JSON.parse(str); | |
} | |
catch(e) { | |
return false; | |
} | |
} |