Lee un archivo json y añade la lista de opciones a un elemento select
Reading json file and append list options into element select
/* USAGE: | |
$(function(){ | |
var steps = new Stepper("#steps"); | |
steps.addSlide(1, function(){ this.canvas.text("slide 1"); }); | |
steps.addSlide(2, function(){ this.canvas.text("slide 2"); }); | |
steps.go(); | |
}); | |
*/ | |
<?php | |
// jQuery version of https://gist.github.com/3110728 | |
/* | |
-- the SQL database table | |
create table form_ajax ( | |
ID varchar(5) not null, | |
Name varchar(100), | |
Address varchar(100), |
<?php | |
$curl = curl_init(); | |
curl_setopt_array($curl, Array( | |
CURLOPT_URL => 'http://blogs.guggenheim.org/map/feed/', | |
CURLOPT_USERAGENT => 'spider', | |
CURLOPT_TIMEOUT => 120, | |
CURLOPT_CONNECTTIMEOUT => 30, | |
CURLOPT_RETURNTRANSFER => TRUE, |
Lee un archivo json y añade la lista de opciones a un elemento select
Reading json file and append list options into element select
<?php | |
// API access key from Google API's Console | |
define( 'API_ACCESS_KEY', 'YOUR-API-ACCESS-KEY-GOES-HERE' ); | |
$registrationIds = array( $_GET['id'] ); | |
// prep the bundle | |
$msg = array |
<?php | |
$countryArray = array( | |
'AD'=>array('name'=>'ANDORRA','code'=>'376'), | |
'AE'=>array('name'=>'UNITED ARAB EMIRATES','code'=>'971'), | |
'AF'=>array('name'=>'AFGHANISTAN','code'=>'93'), | |
'AG'=>array('name'=>'ANTIGUA AND BARBUDA','code'=>'1268'), | |
'AI'=>array('name'=>'ANGUILLA','code'=>'1264'), | |
'AL'=>array('name'=>'ALBANIA','code'=>'355'), | |
'AM'=>array('name'=>'ARMENIA','code'=>'374'), | |
'AN'=>array('name'=>'NETHERLANDS ANTILLES','code'=>'599'), |
/** | |
* Install: | |
* $ npm install gulp gulp-minify-css gulp-autoprefixer gulp-ruby-sass gulp-coffee gulp-uglify gulp-concat gulp-rimraf gulp-notify | |
*/ | |
var gulp = require('gulp'); | |
// styles | |
var minifycss = require('gulp-minify-css'); | |
var autoprefixer = require('gulp-autoprefixer'); |
<?php | |
// Check http://www.systutorials.com/136102/a-php-function-for-fetching-rss-feed-and-outputing-feed-items-as-html/ for description | |
// RSS to HTML | |
/* | |
$tiem_cnt: max number of feed items to be displayed | |
$max_words: max number of words (not real words, HTML words) | |
if <= 0: no limitation, if > 0 display at most $max_words words | |
*/ |
[{"_id":2610888,"name":"Understed","country":"DK","coord":{"lon":10.51667,"lat":57.383331}}, | |
{"_id":2613685,"name":"Skodsborg","country":"DK","coord":{"lon":12.57324,"lat":55.822498}}, | |
{"_id":2613357,"name":"Smidstrup","country":"DK","coord":{"lon":12.55787,"lat":55.865688}}, | |
{"_id":6460975,"name":"Rastnik","country":"BG","coord":{"lon":25.283331,"lat":41.400002}}, | |
{"_id":727762,"name":"Rastnik","country":"BG","coord":{"lon":25.283331,"lat":41.400002}}, | |
{"_id":596826,"name":"Murava","country":"LT","coord":{"lon":23.966669,"lat":54.916672}}] |
######################################################################## | |
# OPTIMAL .htaccess FILE FOR SPEED AND SECURITY @Version 2.0.9 - 03/2024 | |
# ---------------------------------------------------------------------- | |
# @Author: Andreas Hecht | |
# @Author URI: https://seoagentur-hamburg.com | |
# License: GNU General Public License v2 or later | |
# License URI: http://www.gnu.org/licenses/gpl-2.0.html | |
######################################################################## | |