Skip to content

Instantly share code, notes, and snippets.

View impressivewebs's full-sized avatar

Louis Lazaris impressivewebs

View GitHub Profile
This file has been truncated, but you can view the full file.
[{"pid":8816,"tid":4896,"ts":1211949279000,"ph":"X","cat":"toplevel","name":"MessageLoop::RunTask","args":{"src_file":"c:\\b\\build\\slave\\win-pgo\\build\\src\\third_party\\webkit\\source\\platform\\scheduler\\base\\task_queue_impl.cc","src_func":"PushOntoImmediateIncomingQueueLocked"},"dur":0},
{"pid":8816,"tid":4896,"ts":1211949279000,"ph":"X","cat":"toplevel","name":"TaskQueueManager::ProcessTaskFromWorkQueue","args":{"src_file":"c:\\b\\build\\slave\\win-pgo\\build\\src\\base\\trace_event\\trace_log.cc","src_func":"SetEnabled"},"dur":0},
{"pid":8816,"tid":4896,"ts":1211949279000,"ph":"X","cat":"toplevel","name":"TaskQueueManager::ProcessTaskFromWorkQueue","args":{"src_file":"c:\\b\\build\\slave\\win-pgo\\build\\src\\base\\trace_event\\trace_log.cc","src_func":"SetEnabled"},"dur":0},
{"pid":8816,"tid":4896,"ts":1211949279000,"ph":"X","cat":"toplevel","name":"TaskQueueManager::ProcessTaskFromWorkQueue","args":{"src_file":"c:\\b\\build\\slave\\win-pgo\\build\\src\\base\\trace_event\\trace_log.cc","src_func":
@impressivewebs
impressivewebs / animations.css
Created April 8, 2016 19:31
SVG2CSS : output files
@keyframes dropball {
}
@impressivewebs
impressivewebs / SassMeister-input.scss
Created September 25, 2015 06:52
Generated by SassMeister.com.
// ----
// libsass (v3.2.5)
// ----
$theme: "#ccc";
body {
background-color: $theme;
}
@impressivewebs
impressivewebs / gist:4964d82509ba252a966d
Last active August 29, 2015 14:15
JS Bin Code-Mirror fix
javascript:void((function(d){d.querySelector('.CodeMirror-gutter').style.display='none';})(document));
@impressivewebs
impressivewebs / gist:f7f079b276f56c5bd900
Created December 23, 2014 08:31
HTML Inspector Bookmarklet
javascript:void((function(d){h=d.createElement('script');h.src='//cdnjs.cloudflare.com/ajax/libs/html-inspector/0.8.1/html-inspector.js';d.body.appendChild(h);})(document));

Media Queries - Advanced Methods

For an extensive guide to get started with media queries, go to this previous article.

If you have worked with responsive design, you have probably used media queries. Media queries are a clean and simple way to create responsive websites using CSS. They work by allowing you to change the style of the page when the user's screen is a certain size. Here is a simple example:

@media (max-width: 700px) {
    p {
        color: red;
    }

}

// A script to quickly select the entire strike zone in BaseballSavant.com's pitchFX search tool.
(function(d) {
for (var i = 1; i <= 9; i++) {
if (d.getElementById('chk_z_' + i)) {
d.getElementById('chk_z_' + i).checked=true;
}
}
for (var i = 11; i <= 14; i++) {
if (d.getElementById('chk_z_' + i)) {
// A script to quickly select everything outside the strike zone in BaseballSavant.com's pitchFX search tool.
(function(d) {
for (var i = 1; i <= 9; i++) {
if (d.getElementById('chk_z_' + i)) {
d.getElementById('chk_z_' + i).checked=false;
}
}
for (var i = 11; i <= 14; i++) {
if (d.getElementById('chk_z_' + i)) {
window.onload = function () {
if($('#header-ad').height() === 0) {
$('.content-left').prepend("<div class='update-box'><p class='xtra'><b>Hey, ad blocker user!</b> Do you mind white listing my site? You can also <a href='http://www.impressivewebs.com/384-pages-of-css/'>buy one of my e-books</a> to show your support. Thanks!</p></div>");
}
};
@impressivewebs
impressivewebs / SassMeister-input.scss
Created April 12, 2014 09:50
Generated by SassMeister.com.
// ----
// Sass (v3.3.4)
// Compass (v1.0.0.alpha.18)
// ----
$cache-size: (
'width' : (),
'height' : ()
);