mongo //open shell
Ctrl + L //Clear Shell
Ctrl + C //Exit Shell
function deg2rad (angle) { | |
return angle * .017453292519943295; | |
} | |
function distance($lat1,$lng1,$lat2,$lng2) | |
{ | |
$lat1=deg2rad($lat1); | |
$lng1=deg2rad($lng1); | |
$lat2=deg2rad($lat2); | |
$lng2=deg2rad($lng2); |
// takes a {} object and returns a FormData object | |
var objectToFormData = function(obj, form, namespace) { | |
var fd = form || new FormData(); | |
var formKey; | |
for(var property in obj) { | |
if(obj.hasOwnProperty(property)) { | |
if(namespace) { |
FROM mysql:5.6 | |
MAINTAINER Your Name <[email protected]> | |
COPY wait-for-mysql.sh / | |
CMD /wait-for-mysql.sh |
import { useState } from "react"; | |
import FocusOutside from '../../lib/FocusOutside' | |
const SelectCountry = (props)=>{ | |
const [ShowMenu, setShowMenu] = useState(false) | |
const toogleMenu = ()=>{ | |
setShowMenu(!ShowMenu) | |
} |
import { useState } from "react"; | |
const FocusOutside = ({clickedOutside, ...props})=>{ | |
let _timeoutID; | |
const [IsManagingFocus, setIsManagingFocus] = useState(false); | |
const _onBlur = ()=>{ | |
_timeoutID = setTimeout(() => { |
#!/bin/bash | |
# | |
# | |
WP_OWNER=user # <-- wordpress owner | |
WP_GROUP=www-data # <-- wordpress group | |
WP_ROOT=/ # <-- wordpress root directory | |
WS_GROUP=www-data # <-- webserver group | |
# reset to safe defaults | |
find ${WP_ROOT} -exec chown ${WP_OWNER}:${WP_GROUP} {} \; |
Awesome PHP Original Link
A curated list of amazingly awesome PHP libraries, resources and shiny things.
Please see CONTRIBUTING, CODE-OF-CONDUCT and COLLABORATING for details.
A curated list of awesome UIkit tools and resources. Inspired by awesome-php and the likes.
- Sublime Text plugin - Autocompletion plugin for Sublime Text 3
- Atom plugin - Autocompletion plugin for Atom
- PhpStorm plugin - Autocompletion plugin for PhpStorm
- Visual Studio Code plugin - Snippets for Visual Studio Code
You are to create two HTML pages with a common look and feel. These two pages will be uploaded to the course webserver (opentech.durhamcollege.org) using WinSCP. The pages must be visible from the server with a Web browser before they can be marked. Pages that are stored only on the local workstation disk drive cannot be viewed from any other system, and therefore cannot be marked.
For this assignment you should try to find a web resource that has a list and explains each of the XHTML 1.0 supported tags. As an example, here is a link to the W3Schools tag library (w3schools is an excellent website). Feel free to try and find your own.
The HTML pages must conform to the W3C XHTML 1.0 Transitional specification, as checked by the W3C validator.