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
---------- My Neovim Configuration ---------- | |
-- This file contains my neovim configuration | |
-- including plugins and settings. | |
--------------------------------------------- | |
local Plug = vim.fn['plug#'] | |
----------------- Plugin Setup -------------- | |
-- Install plugins using vim-plug | |
--------------------------------------------- |
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
<?php | |
function formatJSONToPHP($value) { | |
$output = []; | |
if (is_array($value) === false) { | |
if (is_numeric($value)) { | |
$output[] = sprintf("%s,", $value); | |
} else { | |
$output[] = sprintf("'%s',", $value); |
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
version: '2' | |
services: | |
webserver: | |
container_name: wordpress_webserver | |
build: . | |
ports: | |
- "3000:80" | |
volumes: | |
- ./wordpress:/var/www/html/ |
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
<?php | |
/** | |
CREATE TABLE `notifications` ( | |
`id` int(11) unsigned NOT NULL AUTO_INCREMENT, | |
`to` varchar(255) DEFAULT NULL, | |
`subject` varchar(255) DEFAULT NULL, | |
`message` text, | |
`headers` text, | |
`date` datetime DEFAULT NULL, |
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
$media-products-list: "only screen and (max-width : 499px)"; | |
$media-products-grid: "only screen and (min-width : 500px)"; | |
$media-products-grid-compact: "only screen and (min-width : 500px max-width 767px)"; | |
$media-products-grid-compact-expanded: "only screen and (min-width : 768px)"; | |
@mixin use-query($query) { | |
@media #{$query} { | |
@content; | |
} | |
} |
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
Whois Server Version 2.0 | |
Domain names in the .com and .net domains can now be registered | |
with many different competing registrars. Go to http://www.internic.net | |
for detailed information. | |
APPLE.COM.ZON.COM | |
APPLE.COM.WWW.ZON.COM | |
APPLE.COM.WWW.BEYONDWHOIS.COM | |
APPLE.COM.WAS.PWNED.BY.M1CROSOFT.COM |
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
<?php | |
function calculateColumnWidth($maxWidth, $columns, $gutter, $margin) { | |
return floor(($maxWidth-(($columns - 1) * $gutter + 2 * $margin)) / $columns); | |
} | |
echo calculateColumnWidth(960, 5, 20, 0); |
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
<?php | |
function edg_get_pagenum_link_query_vars($query_vars) { | |
$query_vars['test'] = 'asdf'; | |
return $query_vars; | |
} | |
add_filter('get_pagenum_link_query_vars', 'edg_get_pagenum_link_query_vars'); |
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
$rwd-desktop: "only screen and (min-width: 1024px)"; | |
$rwd-tablet-device: "only screen and (max-device-width: 980px)"; | |
$rwd-mobile-device: "only screen and (max-device-width: 600px)"; | |
$rwd-tablet: "only screen and (max-width: 980px)"; | |
$rwd-tablet-only: "only screen and (min-width: 740px) and (max-width: 980px)"; | |
$rwd-small-tablet: "only screen and (max-width: 740px)"; | |
$rwd-small-tablet-only: "only screen and (min-width: 600px) and (max-width: 740px)"; |
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
function respondsTo(respondToSize, callback, undoCallback) { | |
if ( typeof respondToSize === 'string' ) | |
{ | |
respondToSize = [respondToSize]; | |
} | |
function calculateSize() | |
{ | |
var width = jQuery('body').width(); | |
var size = 'desktop'; |
NewerOlder