This is primarily for making iPhone-only versions of an existing site/application.
<meta name="viewport" content="width=device-width, user-scalable=no, initial-scale=1, minimum-scale=1, maximum-scale=1">
<!-- For iPhone: -->
/* | |
As of version 1.1.2, Propane will load and execute the contents of | |
~Library/Application Support/Propane/unsupported/caveatPatchor.js | |
immediately following the execution of its own enhancer.js file. | |
You can use this mechanism to add your own customizations to Campfire | |
in Propane. | |
Below you'll find two customization examples. |
# based on http://git.io/hpl2Gw | |
linters: | |
PropertySortOrder: | |
order: | |
- position | |
- top | |
- right | |
- bottom | |
- left |
const util = require('util'); | |
const sass = require('sass'); // `npm i -D sass` | |
const renderSass = util.promisify(sass.render); | |
const inputFile = '_includes/style.scss'; // the path to your main SCSS file | |
const outputFile = 'style.css'; // the filename you want this template to be saved as | |
module.exports = class { | |
data() { | |
return { | |
permalink: outputFile, |
<!doctype html> | |
<html lang="en"> | |
<head> | |
<meta charset="utf-8"> | |
<title>Page Not Found</title> | |
<style type="text/css" media="screen"> | |
body { | |
background: #f0f0f0; | |
font: normal 18px sans-serif; | |
width: 400px; |
from django.contrib import admin | |
from django.contrib.auth.models import User | |
from django.contrib.auth.admin import UserAdmin | |
from django.forms.models import inlineformset_factory | |
from django import forms | |
from django.contrib.auth.forms import UserCreationForm, UserChangeForm | |
def upgrade_user_admin(UserProfile=None, unique_email=False, | |
list_display=None): |
Dear soon-to-be-former user, | |
We've got some fantastic news! Well, it's great news for us anyway. You, on | |
the other hand, are fucked. | |
We've just been acquired by: | |
# Block Twitter’s new web font | |
https://abs.twimg.com/fonts/chirp-bold-web.woff | |
https://abs.twimg.com/fonts/chirp-heavy-web.woff | |
https://abs.twimg.com/fonts/chirp-regular-web.woff | |
# hides engage-y modules from the rightmost sidebar | |
twitter.com##[data-testid="sidebarColumn"] div[aria-label] | |
twitter.com##[data-testid="sidebarColumn"] div:has(> aside[aria-label]) | |
# hides promoted tweets |
#!/usr/bin/env sh | |
## | |
# This is script with usefull tips taken from: | |
# https://github.com/mathiasbynens/dotfiles/blob/master/.osx | |
# | |
# install it: | |
# curl -sL https://raw.github.com/gist/2108403/hack.sh | sh | |
# |
/* bye-bye brands */ | |
div[aria-label~="Timeline"] div[role="group"]+div{background-color:white;position:absolute !important;top:-24px !important;left:-64px !important;margin-top:0 !important;width:calc(100% + 64px);height:calc(100% + 24px);} | |
div[aria-label~="Timeline"] div[role="group"]+div *{display:none !important;} |