Skip to content

Instantly share code, notes, and snippets.

theapache64 theapache64

Block or report user

Report or block theapache64

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View gist:851f76f7e5f5ea53b10eeea848df51c2
[PHP]
;;;;;;;;;;;;;;;;;;;
; About php.ini ;
;;;;;;;;;;;;;;;;;;;
; PHP's initialization file, generally called php.ini, is responsible for
; configuring many of the aspects of PHP's behavior.
; PHP attempts to find and load this configuration from a number of locations.
; The following is a summary of its search order:
View Main.java
package lab;
import java.io.BufferedReader;
import java.io.File;
import java.io.FileReader;
import java.io.IOException;
import java.util.ArrayList;
import java.util.List;
import java.util.Map;
@theapache64
theapache64 / gist:e7ebf9154f22ce75fad5
Created Nov 26, 2015
Quora - HideTopContent Script
View gist:e7ebf9154f22ce75fad5
$('div.EventHeader').each(function(i, heading) {
var headingData = heading.innerHTML;
console.log("Heading is "+headingData);
var hasTopContent = headingData.indexOf("Top Content on Quora")!=-1;
if(hasTopContent){
$(heading).closest(".pagedlist_item").css('opacity','0.2');
}
console.log("Has top content = "+hasTopContent);
});
@theapache64
theapache64 / gist:1745fabda7744c2350c8
Created Sep 12, 2015
The below jQuery script will alert if the viewCount of a stackoverflow question changed.
View gist:1745fabda7744c2350c8
$(document).ready(function(){
var prevViewCount = 0;
var isFirst = 1;
var url = window.location.href;
if(url.indexOf("/questions/") > -1){
console.log("Question found");
setInterval(function(){
You can’t perform that action at this time.