Attention: the list was moved to
https://github.com/dypsilon/frontend-dev-bookmarks
This page is not maintained anymore, please update your bookmarks.
Attention: the list was moved to
https://github.com/dypsilon/frontend-dev-bookmarks
This page is not maintained anymore, please update your bookmarks.
// creating a simple gist | |
$(document).ready(function() { | |
alert("hello world"); | |
}); |
<?php | |
// Name/Path of the file to import | |
$filename = 'testsqlfile.sql'; | |
// MySQL host | |
$mysql_host = 'putyourhostnamehere.com'; | |
// MySQL username | |
$mysql_username = 'testusername'; | |
// MySQL password | |
$mysql_password = 'testpassword'; | |
// Database name |
function mergeObjects(obj, ...others) { | |
// returning the base object unchanged if no other arguments are provided | |
if (others.length < 1) return obj; | |
// looping through the arguments | |
for (i = 0; i < others.length; i++) { | |
let theObj = others[i]; | |
// if the current object is not an object or its value is null (typeof null is "object" in js), then console log the error | |
if (typeof theObj !== "object" || typeof theObj === null) { |
#!/bin/bash | |
# | |
# This script configures WordPress file permissions based on recommendations | |
# from http://codex.wordpress.org/Hardening_WordPress#File_permissions | |
# | |
# Author: Michael Conigliaro <mike [at] conigliaro [dot] org> | |
# | |
WP_OWNER=www-data # <-- wordpress owner | |
WP_GROUP=www-data # <-- wordpress group | |
WP_ROOT=$1 # <-- wordpress root directory |
const reducer = ( state = 0, action ) => { | |
switch(action.type){ | |
case "INCREMENT": | |
return state + 1 | |
case "DECREMENT": | |
return state - 1 | |
default: | |
return state | |
} | |
} |
const reducer = ( state = 0, action ) => { | |
switch(action.type){ | |
case "INCREMENT": | |
return state + 1 | |
case "DECREMENT": | |
return state - 1 | |
default: | |
return state | |
} | |
} |
const reducer = ( state = 0, action ) => { | |
switch(action.type){ | |
case "INCREMENT": | |
return state + 1 | |
case "DECREMENT": | |
return state - 1 | |
default: | |
return state | |
} | |
} |
const reducer = ( state = 0, action ) => { | |
switch(action.type){ | |
case "INCREMENT": | |
return state + 1 | |
case "DECREMENT": | |
return state - 1 | |
default: | |
return state | |
} | |
} |
const reducer = ( state = 0, action ) => { | |
switch(action.type){ | |
case "INCREMENT": | |
return state + 1 | |
case "DECREMENT": | |
return state - 1 | |
default: | |
return state | |
} | |
} |