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
| // | |
| // Regular Expression for URL validation | |
| // | |
| // Author: Diego Perini | |
| // Created: 2010/12/05 | |
| // Updated: 2018/09/12 | |
| // License: MIT | |
| // | |
| // Copyright (c) 2010-2018 Diego Perini (http://www.iport.it) | |
| // |
| javascript: | |
| var minimap = document.body.cloneNode(true); | |
| [].forEach.call(minimap.getElementsByTagName('a'), function(link) { | |
| link.href = 'javascript:;'; | |
| }); | |
| minimap.style.position = 'fixed'; | |
| minimap.style.webkitTransform = 'scale(.1)'; | |
| document.body.appendChild(minimap); | |
| minimap.style.top = minimap.offsetHeight*-.45+'px'; | |
| minimap.style.right = minimap.offsetWidth*-.45+'px'; |
| // Ruby = 5.times { |i| puts i } | |
| // JS = (1).times(function(i){console.log(i);}) | |
| Number.prototype.times = function(cb) { | |
| var i = -1; | |
| while (++i < this) { | |
| cb(i); | |
| } | |
| return +this; |
| var Sequelize = require("sequelize") | |
| var sequelize = new Sequelize('database', 'root') | |
| var User = sequelize.define('User', { username: Sequelize.STRING }) | |
| var Comment = sequelize.define('Comment', { text: Sequelize.TEXT }) | |
| User.hasMany(Comment) | |
| Comment.belongsTo(User) | |
| sequelize.sync({force: true}).success(function() { |
| var p1 = { | |
| x: 20, | |
| y: 20 | |
| }; | |
| var p2 = { | |
| x: 40, | |
| y: 40 | |
| }; |
| (/[A-z\u00C0-\u00ff]+/g) |
| #!/bin/sh | |
| ### | |
| # SOME COMMANDS WILL NOT WORK ON macOS (Sierra or newer) | |
| # For Sierra or newer, see https://github.com/mathiasbynens/dotfiles/blob/master/.macos | |
| ### | |
| # Alot of these configs have been taken from the various places | |
| # on the web, most from here | |
| # https://github.com/mathiasbynens/dotfiles/blob/5b3c8418ed42d93af2e647dc9d122f25cc034871/.osx |
| /* normal flexbox */ | |
| .flexbox .flex-container { | |
| display: -webkit-flex; | |
| display: -moz-flex; | |
| display: -ms-flex; | |
| display: flex; | |
| } | |
| .flexbox .flex-container.vertical { | |
| display: -webkit-flex; | |
| display: -moz-flex; |
Only files under 25 MB can be previewed with the Google Drive viewer.
Google Drive viewer helps you preview over 16 different file types, listed below: