This gist's comment stream is a collection of webdev apps for OS X. Feel free to add links to apps you like, just make sure you add some context to what it does — either from the creator's website or your own thoughts.
— Erik
| @mixin font-face($font-family, $url) { | |
| @font-face { | |
| font-family: '#{$font-family}'; | |
| src: url('#{$url}.eot'); | |
| src: url('#{$url}.eot?#iefix') format('embedded-opentype'), | |
| url('#{$url}.woff') format('woff'), | |
| url('#{$url}.ttf') format('truetype'), | |
| url('#{$url}.svg') format('svg'); | |
| font-weight: normal; | |
| font-style: normal; |
| /* | |
| * Outputs a float representing the iOS version if user is using an iOS browser i.e. iPhone, iPad | |
| * Possible values include: | |
| * 3 - v3.0 | |
| * 4.0 - v4.0 | |
| * 4.14 - v4.1.4 | |
| * false - Not iOS | |
| */ | |
| var iOS = parseFloat( |
| #!/bin/bash | |
| for file in `find .` | |
| do | |
| EXTENSION="${file##*.}" | |
| if [ "$EXTENSION" == "php" ] || [ "$EXTENSION" == "phtml" ] | |
| then | |
| RESULTS=`php -l $file` |
| /* | |
| Copyright (c) 2017 Chris Patuzzo | |
| https://twitter.com/chrispatuzzo | |
| Permission is hereby granted, free of charge, to any person obtaining a copy | |
| of this software and associated documentation files (the "Software"), to deal | |
| in the Software without restriction, including without limitation the rights | |
| to use, copy, modify, merge, publish, distribute, sublicense, and/or sell | |
| copies of the Software, and to permit persons to whom the Software is | |
| furnished to do so, subject to the following conditions: |
| // ==UserScript== | |
| // @name SCRIPT | |
| // @description SCRIPT DESCRIPTION | |
| // @icon https://raw.github.com/sepehr/userscript-SCRIPT/master/SCRIPT.png | |
| // | |
| // @author Sepehr Lajevardi <me@sepehr.ws> | |
| // @namespace http://github.com/sepehr | |
| // @downloadURL https://raw.github.com/sepehr/userscript-SCRIPT/master/SCRIPT.user.js | |
| // | |
| // @license GPLv3 - http://www.gnu.org/licenses/gpl-3.0.txt |
| <div class="the-return"> | |
| [HTML is replaced when successful.] | |
| </div> |
| // ==UserScript== | |
| // @name Userscript Name | |
| // @namespace http://example.com/ | |
| // @description Userscript Description | |
| // @match http://example.com/* (or @include * to include all pages) | |
| // @version 1.0 | |
| // ==/UserScript== | |
| // Emulate Greasemonkey's unsafeWindow in Chrome | |
| window.unsafeWindow = window.unsafeWindow || (function() { |
| @mixin breakpoint($point) { | |
| @if $point == sm-max { | |
| @media (max-width: 460px) { @content; } | |
| } | |
| @else if $point == md-max { | |
| @media (max-width: 800px) { @content; } | |
| } | |
| @else if $point == lg-max { | |
| @media (max-width: 1024px) { @content; } | |
| } |
the problem:
subl somefile
zsh: correct 'subl' to 'ul' [nyae]? n
node -v
zsh: correct 'node' to 'od' [nyae]? n
v0.8.16