THIS GIST WAS MOVED TO TERMSTANDARD/COLORS REPOSITORY.
PLEASE ASK YOUR QUESTIONS OR ADD ANY SUGGESTIONS AS A REPOSITORY ISSUES OR PULL REQUESTS INSTEAD!
THIS GIST WAS MOVED TO TERMSTANDARD/COLORS REPOSITORY.
PLEASE ASK YOUR QUESTIONS OR ADD ANY SUGGESTIONS AS A REPOSITORY ISSUES OR PULL REQUESTS INSTEAD!
| /*! | |
| * gulp | |
| * $ npm install gulp-ruby-sass gulp-autoprefixer gulp-cssnano gulp-jshint gulp-concat gulp-uglify gulp-imagemin gulp-notify gulp-rename gulp-livereload gulp-cache del --save-dev | |
| */ | |
| // Load plugins | |
| var gulp = require('gulp'), | |
| sass = require('gulp-ruby-sass'), | |
| autoprefixer = require('gulp-autoprefixer'), | |
| cssnano = require('gulp-cssnano'), |
| .timeline { | |
| list-style: none; | |
| padding: 20px 0 20px; | |
| position: relative; | |
| } | |
| .timeline:before { | |
| top: 0; | |
| bottom: 0; | |
| position: absolute; |
| <?php | |
| /* | |
| * Warning! Read and use at your own risk! | |
| * | |
| * This tiny proxy script is completely transparent and it passes | |
| * all requests and headers without any checking of any kind. | |
| * The same happens with JSON data. They are simply forwarded. | |
| * | |
| * This is just an easy and convenient solution for the AJAX |
| javascript:var thing=function(){var e=parseInt(document.getElementById("ID-overviewCounterValue").innerText);[].slice.call(document.querySelectorAll("link[type='image/x-icon']")).forEach(function(e){e.parentNode.removeChild(e)});var t=document.createElement("canvas");t.width=16;t.height=16;var n=t.getContext("2d");var r=function(){n.font="bold 10px sans-serif";n.fillText(e,e>9?2:4,12);var r=document.createElement("link");r.type="image/x-icon";r.rel="shortcut icon";r.href=t.toDataURL("image/x-icon");document.getElementsByTagName("head")[0].appendChild(r)};r()};setInterval(thing,1e3) |
| # Place this file inside your ~/.idlerc/ folder | |
| # or paste its contents inside | |
| # /path/to/python/idlelib/config-highlight.def | |
| # Adapted from SublimeText's Monokai | |
| [monokai] | |
| normal-foreground= #F8F8F2 | |
| normal-background= #272822 | |
| keyword-foreground= #F92672 | |
| keyword-background= #272822 |
| chrome.webRequest.onHeadersReceived.addListener( | |
| function (details) { | |
| for (var i = 0; i < details.responseHeaders.length; ++i) { | |
| if (details.responseHeaders[i].name.toLowerCase() == 'x-frame-options') { | |
| details.responseHeaders.splice(i, 1); | |
| return { | |
| responseHeaders: details.responseHeaders | |
| }; | |
| } | |
| } |
| <?php | |
| class FacebookDebugger | |
| { | |
| /* | |
| * https://developers.facebook.com/docs/opengraph/using-objects | |
| * | |
| * Updating Objects | |
| * | |
| * When an action is published, or a Like button pointing to the object clicked, | |
| * Facebook will 'scrape' the HTML page of the object and read the meta tags. |
| #AND | |
| <b:if cond='data:blog.pageType == "index"'> | |
| <b:if cond='data:blog.searchQuery'> | |
| <!--search_page AND index_page--> | |
| </b:if> | |
| </b:if> | |
| #OR |
| <?php | |
| // https://gist.github.com/magnetikonline/650e30e485c0f91f2f40 | |
| class DumpHTTPRequestToFile { | |
| public function execute($targetFile) { | |
| $data = sprintf( | |
| "%s %s %s\n\nHTTP headers:\n", | |
| $_SERVER['REQUEST_METHOD'], | |
| $_SERVER['REQUEST_URI'], | |
| $_SERVER['SERVER_PROTOCOL'] |