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
| // jQuery no-double-tap-zoom plugin | |
| // Triple-licensed: Public Domain, MIT and WTFPL license - share and enjoy! | |
| (function($) { | |
| var IS_IOS = /iphone|ipad/i.test(navigator.userAgent); | |
| $.fn.nodoubletapzoom = function() { | |
| if (IS_IOS) | |
| $(this).bind('touchstart', function preventZoom(e) { | |
| var t2 = e.timeStamp |
| /* Side notes for calling out things | |
| -------------------------------------------------- */ | |
| /* Base styles (regardless of theme) */ | |
| .bs-callout { | |
| margin: 20px 0; | |
| padding: 15px 30px 15px 15px; | |
| border-left: 5px solid #eee; |
| function getTrilateration(position1, position2, position3) { | |
| var xa = position1.x; | |
| var ya = position1.y; | |
| var xb = position2.x; | |
| var yb = position2.y; | |
| var xc = position3.x; | |
| var yc = position3.y; | |
| var ra = position1.distance; | |
| var rb = position2.distance; | |
| var rc = position3.distance; |
| # These steps will get nginx installed on your Mac for local development and | |
| # testing purposes, to be used alongside MAMP (which already includes Apache). | |
| # The following steps assume that you're running MAMP and that you already | |
| # have php-cgi in /Applications/MAMP/bin/php/php5.4.10/bin/php-cgi. | |
| # The start-nginx and stop-nginx scripts created at the end do not | |
| # start or stop MySQL because it is assumed that you normally run MAMP | |
| # with Apache + MySQL turned on and that you occasionally want to switch | |
| # your web server to Nginx for testing purposes and that you leave MySQL running. | |
| # This process was tested successfully on OS X 10.9. |
The API we are creating in this gist will follow these rules :
password Grant Type only (no need for Authorization pages and such).v1.api.example.com)The API will be written in PHP with the Symfony 2 framework. The following SF2 bundles are used :
AdobeTracking.pageName = 'Mr. Robot : S2 Easter Egg Sites : Ransomware : Home';On load, this page displays a countdown timer starting at 24:00:00. When time is over, the following "hidden" message is revealed:
| #!/usr/bin/python | |
| # | |
| # Copyright 2017 Otto Seiskari | |
| # Licensed under the Apache License, Version 2.0. | |
| # See http://www.apache.org/licenses/LICENSE-2.0 for the full text. | |
| # | |
| # This file is based on | |
| # https://github.com/swagger-api/swagger-ui/blob/4f1772f6544699bc748299bd65f7ae2112777abc/dist/index.html | |
| # (Copyright 2017 SmartBear Software, Licensed under Apache 2.0) | |
| # |