Compass.app: @include box-shadow
.scss {
@include box-shadow(#aaaaaa 1px 1px 2px);
}
// becomes
.css {
-webkit-box-shadow: #aaaaaa 1px 1px 2px;
-moz-box-shadow: #aaaaaa 1px 1px 2px;
box-shadow: #aaaaaa 1px 1px 2px;
}
No longer using Compass. Going with Prepros (on Mac) with Autoprefixer enabled (so no @include needed).
Compass.app: @include border-radius
.scss {
@include border-radius(10px);
}
// becomes
.css {
-webkit-border-radius: 10px;
-moz-border-radius: 10px;
border-radius: 10px;
}
No longer using Compass. Going with Prepros (on Mac) with Autoprefixer enabled (so no @include needed).
Compass.app: @include background linear-gradient
.scss {
@include background(linear-gradient(#ffffff, #F6F6F6));
}
// becomes
.css {
background: -webkit-linear-gradient(#ffffff, #f6f6f6);
background: -moz-linear-gradient(#ffffff, #f6f6f6);
background: -o-linear-gradient(#ffffff, #f6f6f6);
background: linear-gradient(#ffffff, #f6f6f6);
}
No longer using Compass. Going with Prepros (on Mac) with Autoprefixer enabled (so no @include needed, just straight CSS).
Example: Diff
Index: languages/ini.js
===================================================================
--- languages/ini.js (revision 199)
+++ languages/ini.js (revision 200)
@@ -1,8 +1,7 @@
hljs.LANGUAGES.ini =
{
case_insensitive: true,
- defaultMode:
- {
+ defaultMode: {
contains: ['comment', 'title', 'setting'],
illegal: '[^\\s]'
},
*** /path/to/original timestamp
--- /path/to/new timestamp
***************
*** 1,3 ****
--- 1,9 ----
+ This is an important
+ notice! It should
+ therefore be located at
+ the beginning of this
+ document!
! compress the size of the
! changes.
It is important to spell
Example: HTTP
POST /task?id=1 HTTP/1.1
Host: example.org
Content-Type: application/json; charset=utf-8
Content-Length: 19
{"status": "ok", "extended": true}
Example: INI
;Settings relating to the location and loading of the database
[Database]
ProfileDir=.
ShowProfileMgr=smart
Profile1_Name[] = "\|/_-=MegaDestoyer=-_\|/"
DefaultProfile=True
AutoCreate = no
[AutoExec]
use-prompt="prompt"
Glob=autoexec_*.ini
AskAboutIgnoredPlugins=0
Example: Nginx
user www www;
worker_processes 2;
pid /var/run/nginx.pid;
error_log /var/log/nginx.error_log debug | info | notice | warn | error | crit;
events {
connections 2000;
use kqueue | rtsig | epoll | /dev/poll | select | poll;
}
http {
log_format main '$remote_addr - $remote_user [$time_local] '
'"$request" $status $bytes_sent '
'"$http_referer" "$http_user_agent" '
'"$gzip_ratio"';
send_timeout 3m;
client_header_buffer_size 1k;
gzip on;
gzip_min_length 1100;
#lingering_time 30;
server {
server_name one.example.com www.one.example.com;
access_log /var/log/nginx.access_log main;
rewrite (.*) /index.php?page=$1 break;
location / {
proxy_pass http://127.0.0.1/;
proxy_redirect off;
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
charset koi8-r;
}
location /api/ {
fastcgi_pass 127.0.0.1:9000;
}
location ~* \.(jpg|jpeg|gif)$ {
root /spool/www;
}
}
}