The popular open-source contract for web designers and developers by Stuff & Nonsense
- Originally published: 23/12/2008
- Revised date: 15/12/2013
- Original post
| exports.definition = { | |
| config: { | |
| "URL": "http://192.168.0.15:3000/v/places", | |
| // "debug": 1, | |
| "adapter": { | |
| "type": "restapi", | |
| "collection_name": "Place", | |
| "idAttribute": "id" | |
| }, | |
| "headers": { // your custom headers |
| [ | |
| { | |
| id: 1, | |
| name: "Botilleria Uno", | |
| description: "Es una prueba 1", | |
| address: null, | |
| latitude: null, | |
| longitude: null, | |
| created_at: "2015-02-11T16:53:02.070Z", | |
| updated_at: "2015-02-11T16:53:02.070Z" |
| $.index.open(); | |
| var myPlaces = Alloy.createCollection("Place"); | |
| places=myPlaces.fetch(); | |
| console.log(places); |
| Country.create([{name: "Afghanistan",alpha: "AFG",code: "004"},{name: "Åland Islands",alpha: "ALA",code: "248"},{name: "Albania",alpha: "ALB",code: "008"},{name: "Algeria",alpha: "DZA",code: "012"},{name: "American Samoa",alpha: "ASM",code: "016"},{name: "Andorra",alpha: "AND",code: "020"},{name: "Angola",alpha: "AGO",code: "024"},{name: "Anguilla",alpha: "AIA",code: "660"},{name: "Antarctica",alpha: "ATA",code: "010"},{name: "Antigua and Barbuda",alpha: "ATG",code: "028"},{name: "Argentina",alpha: "ARG",code: "032"},{name: "Armenia",alpha: "ARM",code: "051"},{name: "Aruba",alpha: "ABW",code: "533"},{name: "Australia",alpha: "AUS",code: "036"},{name: "Austria",alpha: "AUT",code: "040"},{name: "Azerbaijan",alpha: "AZE",code: "031"},{name: "Bahamas",alpha: "BHS",code: "044"},{name: "Bahrain",alpha: "BHR",code: "048"},{name: "Bangladesh",alpha: "BGD",code: "050"},{name: "Barbados",alpha: "BRB",code: "052"},{name: "Belarus",alpha: "BLR",code: "112"},{name: "Belgium",alpha: "BEL",code: "056"},{name: "Belize",alpha |
| # Fixing permissions of packaged gems | |
| files: | |
| "/opt/elasticbeanstalk/hooks/appdeploy/pre/10_fixing_permission.sh": | |
| content: | | |
| #!/usr/bin/env bash | |
| # . /opt/elasticbeanstalk/containerfiles/envvars | |
| . /opt/elasticbeanstalk/support/envvars | |
| CACHE_GEM_DIR=$EB_CONFIG_APP_ONDECK/vendor/cache |
| # Logfile created on 2015-04-17 19:52:14 +0000 by logger.rb/44203 | |
| Connecting to database specified by database.yml | |
| 2015-04-17T19:52:18.285Z 331 TID-ovpzpbr5c INFO: Booting Sidekiq 3.3.3 with redis options {:url=>"redis://server.8x2rxq.0001.use1.cache.amazonaws.com:6379", :namespace=>"Sidekiq", :network_timeout=>5} | |
| could not connect to server: No such file or directory | |
| Is the server running locally and accepting | |
| connections on Unix domain socket "/var/run/postgresql/.s.PGSQL.5432"? |
| .directive('fileUploaded', function ($q) { | |
| var slice = Array.prototype.slice; | |
| return { | |
| restrict: 'A', | |
| require: '?ngModel', | |
| link: function (scope, element, attrs, ngModel) { | |
| ngModel.$render = function() {}; | |
| element.bind('change', function(e){ |
| require 'net/http' | |
| require 'uri' | |
| uri = URI.parse('http://www.test.com/index.php') | |
| http = Net::HTTP.new(uri.host, uri.port) | |
| hex = (('a'..'f').to_a + ('0'..'9').to_a).sort.map { |x| x.ord } | |
| ascii = (32..127).to_a | |
| tables = '' |
| #!usr/bin/python | |
| #Facebook Cracker Version 2.1 can crack into Facebook Database 100% without Interruption By Facebook Firewall ! | |
| #This program is for educational purposes only. | |
| #Don't attack people facebook accounts it's illegal ! | |
| #If you want to crack into someone's account, you must have the permission of the user. | |
| #Mauritania Attacker is not responsible. | |
| import sys | |
| import random |