In File Explorer, go to C:\MAMP\conf\apache
and open httpd.conf
with your text editor.
Find this line:
# Virtual hosts
# Include conf/extra/httpd-vhosts.conf
/* | |
Copy this into the console of any web page that is interactive and doesn't | |
do hard reloads. You will hear your DOM changes as different pitches of | |
audio. | |
I have found this interesting for debugging, but also fun to hear web pages | |
render like UIs do in movies. | |
*/ | |
const audioCtx = new (window.AudioContext || window.webkitAudioContext)() |
<?php | |
// Special pages ----------------- | |
$frontpage_id = get_option( 'page_on_front' ); | |
$blog_id = get_option( 'page_for_posts' ); | |
// Page templates ----------------- | |
$about_templates = get_pages(array( | |
'meta_key' => '_wp_page_template', | |
'meta_value' => 'page-about.php' |
input[type="text"]::-webkit-input-placeholder{ /* Chrome/Opera/Safari */ | |
color: pink; | |
} | |
input[type="text"]::-moz-placeholder { /* Firefox 19+ */ | |
color: pink; | |
} | |
input[type="text"]:-ms-input-placeholder { /* IE 10+ */ | |
color: pink; | |
} | |
input[type="text"]:-moz-placeholder { /* Firefox 18- */ |
$('.top-slider').bxSlider({ | |
onSliderLoad: function(currentIndex) { | |
$('.top-slider').children().eq(currentIndex).addClass('active-slide'); | |
}, | |
onSlideAfter: function($slideElement){ | |
$('.top-slider').children().removeClass('active-slide'); | |
$slideElement.addClass('active-slide'); | |
} | |
}); |
Go through this amazon link http://docs.aws.amazon.com/AWSEC2/latest/UserGuide/install-LAMP.html
function queryTwitter($search) | |
{ | |
$url = "https://api.twitter.com/1.1/search/tweets.json"; | |
if($search != "") | |
$search = "#".$search; | |
$query = array( 'count' => 100, 'q' => urlencode($search), "result_type" => "recent"); | |
$oauth_access_token = "ABCD"; | |
$oauth_access_token_secret = "1234"; | |
$consumer_key = "abcd"; | |
$consumer_secret = "5678"; |
People
:bowtie: |
😄 :smile: |
😆 :laughing: |
---|---|---|
😊 :blush: |
😃 :smiley: |
:relaxed: |
😏 :smirk: |
😍 :heart_eyes: |
😘 :kissing_heart: |
😚 :kissing_closed_eyes: |
😳 :flushed: |
😌 :relieved: |
😆 :satisfied: |
😁 :grin: |
😉 :wink: |
😜 :stuck_out_tongue_winking_eye: |
😝 :stuck_out_tongue_closed_eyes: |
😀 :grinning: |
😗 :kissing: |
😙 :kissing_smiling_eyes: |
😛 :stuck_out_tongue: |
<?php | |
/** | |
* return $images_id array() | |
*/ | |
function get_gallery_attachments(){ | |
global $post; | |
$post_content = $post->post_content; | |
preg_match('/\[gallery.*ids=.(.*).\]/', $post_content, $ids); | |
$images_id = explode(",", $ids[1]); |
// Module dependencies | |
var express = require('express'), | |
mysql = require('mysql'); | |
// Application initialization | |
var connection = mysql.createConnection({ | |
host : 'localhost', | |
user : 'root', |