Each of these commands will run an ad hoc http static server in your current (or specified) directory, available at http://localhost:8000. Use this power wisely.
$ python -m SimpleHTTPServer 8000Each of these commands will run an ad hoc http static server in your current (or specified) directory, available at http://localhost:8000. Use this power wisely.
$ python -m SimpleHTTPServer 8000| * { background-color: rgba(255,0,0,.2); } | |
| * * { background-color: rgba(0,255,0,.2); } | |
| * * * { background-color: rgba(0,0,255,.2); } | |
| * * * * { background-color: rgba(255,0,255,.2); } | |
| * * * * * { background-color: rgba(0,255,255,.2); } | |
| * * * * * * { background-color: rgba(255,255,0,.2); } | |
| * * * * * * * { background-color: rgba(255,0,0,.2); } | |
| * * * * * * * * { background-color: rgba(0,255,0,.2); } | |
| * * * * * * * * * { background-color: rgba(0,0,255,.2); } |
| #!/usr/bin/env ruby | |
| require 'xcodeproj' | |
| name = "app_name" // <-Replace with your app name | |
| projectpath = "platforms/ios/" + name + ".xcodeproj" | |
| puts "Adding entitlement push to " + name | |
| puts "Opening " + projectpath | |
| proj = Xcodeproj::Project.open(projectpath) | |
| entitlement_path = name + "/" + name + ".entitlements" |
| // create file: | |
| sudo vim /usr/share/applications/intellij.desktop | |
| // add the following | |
| [Desktop Entry] | |
| Version=172.4343.14 | |
| Type=Application | |
| Terminal=false | |
| Icon[en_US]=/home/aitor/app/idea-IU-172.4343.14/bin/idea.png | |
| Name[en_US]=IntelliJ |
| var Promise = require('bluebird'); | |
| var _ = require('lodash'); | |
| //var User = app.models.User; | |
| var ERRORS = { | |
| userNotFoundError: { | |
| code: 401, | |
| success: false, | |
| message: 'no user found with that id' | |
| }, |
| function sortByAttribute(gameList, sortAttributesList) { | |
| if (!gameList) return; //Ensure we data data to sort | |
| if (!sortAttributesList) return gameList; //Return same list if no sort attribute provided | |
| sortAttributesList = typeof sortAttributesList === 'string' ? [sortAttributesList].slice() : sortAttributesList; | |
| sortAttributesParams = getSortAttributesWithOrder(sortAttributesList); | |
| return gameList.slice().sort(function (a, b) { | |
| return sortByAttrStrategy(a, b, sortAttributesParams.slice()); | |
| }); |