This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
date_default_timezone_set('Asia/Bangkok'); | |
require_once "lib/nusoap.php"; | |
// Create SOAP Server | |
$server = new soap_server(); | |
$server->configureWSDL("Test_Service", "http://www.example.com/test_service"); | |
// Example "hello" function | |
function hello($username) { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var app = angular.module('app', ['ngResource']); | |
app.config(function($locationProvider, $routeProvider) { | |
// $locationProvider.html5Mode(true); | |
$routeProvider | |
.when('/', { templateUrl: 'partials/index', controller: 'ctrl' }) | |
.when('/about', { templateUrl: 'partials/about', controller: 'ctrl' }) | |
.otherwise({redirectTo:'/'}); | |
}); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Model.find({}, [], {'group': 'FIELD'}, function(err, logs) { | |
// code | |
}); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html lang="en"> | |
<head> | |
<meta charset="UTF-8"> | |
<title>Document</title> | |
<style> | |
html, body { | |
margin: 0; | |
padding: 0; | |
width: 100%; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// npm i google-maps | |
import GoogleMapsLoader from 'google-maps'; | |
GoogleMapsLoader.KEY = 'AIzaSyA9aGnRJDU1DRIXl5urposeU0p6qXr0LWM'; | |
GoogleMapsLoader.LIBRARIES = [ | |
// ルート描画に必要 | |
'places' | |
]; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var me = new Object(); | |
var directionsService = new google.maps.DirectionsService(); | |
var directionsDisplay; | |
function calcRoute() { | |
directionsDisplay = new google.maps.DirectionsRenderer(); | |
directionsDisplay.setMap(mapaGlobal); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var express = require('express'); | |
var app = express(); | |
one = [ "La cueca pá los chilenos", | |
"Si no le gustan las cuecas", | |
"Hoy es 18 de Septiembre", | |
"Yo también voy a la ramá", | |
"Tu creis que no se ná", | |
"Yo las bailo donde sea", | |
"No bailo tanto pero tengo otra gracia", |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
angular.module('App', ['ionic', 'ngCordova', 'ngAnimate', 'ngCordovaOauth', 'firebase']) | |
.run(['$ionicPlatform', | |
'$rootScope', | |
'$firebaseAuth', | |
function($ionicPlatform, $rootScope, $firebaseAuth) { | |
$ionicPlatform.ready(function() { | |
if(window.cordova && window.cordova.plugins.Keyboard) { | |
// Hide the accessory bar by default (remove this to show the accessory bar above the keyboard |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<? | |
session_start(); | |
include("sg_funciones.php"); | |
header('Content-type: application/vnd.ms-excel'); | |
header('Content-Disposition: attachment; filename=Utilidad-'.date('U').'.xls'); | |
header('Pragma: no-cache'); | |
header('Expires: 0'); | |
?> | |
<meta charset="UTF-8"> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
en index | |
<?if($_REQUEST["mod"]!=""){include("mods/".$prefijo."".$_REQUEST["mod"].".txt");}else{ include("mods/".$prefijo."".$index.".txt");}?> | |
en sg config | |
$index='qNsGn33iC1t6LCL7NRg2'; | |
modulo | |
<? | |
if($_SESSION['idusuario']!=17){ | |
?> |