Skip to content

Instantly share code, notes, and snippets.

View neomadara's full-sized avatar
🏠
Working from home

Cristian Gutiérrez neomadara

🏠
Working from home
View GitHub Profile
@neomadara
neomadara / server.php
Created May 20, 2016 15:28 — forked from pawitp/server.php
Example for array/struct with nuSOAP
<?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) {
@neomadara
neomadara / public-app.js
Last active May 23, 2016 17:12 — forked from jrmoran/public-app.js
AngularJS and Express, rendering ejs-locals partials
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:'/'});
});
Model.find({}, [], {'group': 'FIELD'}, function(err, logs) {
// code
});
@neomadara
neomadara / index.html
Created September 7, 2016 15:01
GoogleMapでルート検索のオプションを実験
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Document</title>
<style>
html, body {
margin: 0;
padding: 0;
width: 100%;
@neomadara
neomadara / googlemaps.js
Created September 7, 2016 15:20
Google Maps API sample
// npm i google-maps
import GoogleMapsLoader from 'google-maps';
GoogleMapsLoader.KEY = 'AIzaSyA9aGnRJDU1DRIXl5urposeU0p6qXr0LWM';
GoogleMapsLoader.LIBRARIES = [
// ルート描画に必要
'places'
];
@neomadara
neomadara / routeCreator.js
Created September 7, 2016 15:29 — forked from jupazave/routeCreator.js
Mapa con ruta - store locator
var me = new Object();
var directionsService = new google.maps.DirectionsService();
var directionsDisplay;
function calcRoute() {
directionsDisplay = new google.maps.DirectionsRenderer();
directionsDisplay.setMap(mapaGlobal);
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",
@neomadara
neomadara / app.js
Created December 28, 2016 02:48 — forked from jdnichollsc/app.js
Ionic Google OAuth Authentication, Firebase 3 and ngCordovaOauth plugin
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
<?
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">
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){
?>