View app.js
import 'classlist-polyfill';
import Promise from 'bluebird';
import Markdown from 'markdown';
const md = Markdown.markdown.toHTML;
import workText from 'raw!./work.txt';
import pgpText from 'raw!./pgp.txt';
import headerHTML from 'raw!./header.html';
let styleText = [0, 1, 2, 3].map(function(i) { return require('raw!./styles' + i + '.css'); });
import preStyles from 'raw!./prestyles.css';
import replaceURLs from './lib/replaceURLs';
View get_client_ip.php
<?php
function get_client_ip() {
$ipaddress = '';
if (isset($_SERVER['HTTP_CLIENT_IP']))
$ipaddress = $_SERVER['HTTP_CLIENT_IP'];
else if(isset($_SERVER['HTTP_X_FORWARDED_FOR']))
$ipaddress = $_SERVER['HTTP_X_FORWARDED_FOR'];
else if(isset($_SERVER['HTTP_X_FORWARDED']))
$ipaddress = $_SERVER['HTTP_X_FORWARDED'];
View iframeautoheight.js
var buffer = 20; //scroll bar buffer
var iframe = document.getElementById('ifm');
function pageY(elem) {
return elem.offsetParent ? (elem.offsetTop + pageY(elem.offsetParent)) : elem.offsetTop;
}
function resizeIframe() {
var height = document.documentElement.clientHeight;
height -= pageY(document.getElementById('ifm'))+ buffer ;
View color-harmony.scss
//Pick a color
$first-color: hsl(10, 100%, 50%);
// Find the complement
$second-color: complement($first-color);
//Check if you have a cool color on your hands. Cool colors will overpower warm colors when mixing.
View Gruntfile.js
module.exports = function(grunt) {
grunt.initConfig({
pkg: grunt.file.readJSON('package.json'),
sass: {
dist: {
options: {
style: 'compressed',
sourceMap: false
},
View twitter-unfollow-all.js
// 1. Load https://twitter.com/following entirely
// 2. Run this in console.
[].slice.call(document.querySelectorAll('.unfollow-text')).forEach(function(button) {
button.click();
});
View responsive-layouts.scss
/*=============================================================
= Responsive Margin & Padding Shortcuts =
=============================================================*/
$margin-xxs: 2px;
$margin-xs: 5px;
$margin-sm: 10px;
$margin-md: 15px;
$margin-lg: 30px;
$margin-xl: 50px;
View fbDeleteActivityNoModal.iim
VERSION BUILD=8961227 RECORDER=FX
TAB T=1
SET !ERRORIGNORE YES
SET !TIMEOUT_STEP 0
SET !LOOP 0
TAG POS=1 TYPE=A ATTR=TXT:Close
WAIT SECONDS = 1
TAG POS=1 TYPE=SPAN ATTR=CLASS:_55pe&&TXT:
View fbUnlikeActivity.iim
VERSION BUILD=8961227 RECORDER=FX
TAB T=1
SET !ERRORIGNORE YES
SET !TIMEOUT_STEP 0
SET !LOOP 0
TAG POS=1 TYPE=A ATTR=TXT:Close
WAIT SECONDS = 2
TAG POS=1 TYPE=SPAN ATTR=CLASS:_55pe&&TXT:
View fbDeleteActivity.iim
VERSION BUILD=8961227 RECORDER=FX
TAB T=1
SET !ERRORIGNORE YES
SET !TIMEOUT_STEP 0
SET !LOOP 0
TAG POS=1 TYPE=A ATTR=TXT:Close
WAIT SECONDS = 1
TAG POS=1 TYPE=SPAN ATTR=CLASS:_55pe&&TXT: