This file contains 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
Store::Application.routes.draw do | |
match 'select_url' => 'others/products#select_url' | |
wiki_root 'ecommerce/wiki' | |
wiki_root 'publisher/wiki' | |
wiki_root 'saas/wiki' | |
def ecommerces | |
resources :ecommerces, :module => :ecommerce, :except => [:show, :destroy, :edit, :update, :create, :new, :index] do |
This file contains 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
/(.:format) {:subdomain=>"admin", :controller=>"admin/saas/admin_saas", :action=>"index"} | |
admin /admin(.:format) {:action=>"index", :controller=>"admin/saas/admin_saas"} | |
admin_saas_edit GET /admin/saas/:saas_id/edit(.:format) {:action=>"edit", :controller=>"admin/saas/admin_saas"} | |
admin_saas_show GET /admin/saas/:saas_id/show(.:format) {:action=>"index", :controller=>"admin/saas/admin_saas_publishers"} | |
admin_saas_publisher_edit GET /admin/saas/:saas_id/publishers/:publisher_id/edit(.:format) |
This file contains 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
class Fake | |
{ | |
void fake() | |
{ | |
//Methods from Path class doesn't works for Unity | |
//Problem | |
string directory = Path.GetDirectoryName(filepath); | |
//Workaround | |
filepath = filepath.Replace("\\","/"); |
This file contains 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
Vector3 mousePosition = MouseUtils.ConvertMousePositionToWorldPosition(Input.mousePosition, | |
ScenarioData.MinPointToView, | |
ScenarioData.MaxPointToView); | |
public class MouseUtils { | |
public static Vector3 ConvertMousePositionToWorldPosition(Vector3 mousePosition, | |
Vector3 minPoint, | |
Vector3 maxPoint) | |
{ |
This file contains 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
Vector3 mousePosition = MouseUtils.ConvertMousePositionToWorldPosition(Input.mousePosition, | |
ScenarioData.MinPointToView, | |
ScenarioData.MaxPointToView); | |
public class MouseUtils { | |
public static Vector3 ConvertMousePositionToWorldPosition(Vector3 mousePosition, | |
Vector3 minPoint, | |
Vector3 maxPoint) | |
{ |
This file contains 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.filters', []) | |
.filter('fixDate', fixDate) | |
fixDate.$inject = ['$rootScope','globalConfig']; | |
function fixDate ($rootScope, globalConfig) { | |
return function (strDate) { | |
if (!$rootScope.isWebDebug() && | |
globalConfig.app.platform === "I") { |
This file contains 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
<platform name="ios"> | |
<preference name="show-splash-screen-spinner" value="false" /> | |
<preference name="auto-hide-splash-screen" value="true" /> | |
<preference name="AutoHideSplashScreen" value="true" /> | |
<preference name="FadeSplashScreenDuration" value="0.5"/> | |
<preference name="SplashScreenDelay" value="500"/> | |
</platform> | |
<platform name="android"> |
This file contains 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
for (var i = 0; i < this.legend.layerInfos.length; i++) | |
{ | |
var sNomeDiv = ""; | |
var sMensagem = ""; | |
if (this.legend.layerInfos[i].layer.visible) | |
{ | |
sNomeDiv = this.legend.id + "_" + this.legend.layerInfos[i].layer.id; | |
if (this.legend.layerInfos[i].layer.description == "" || |
This file contains 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
// Tem que instalar antes o plugin de clipboard com | |
// npm install copy-paste | |
var fs = require('fs'), | |
ncp = require("copy-paste"); | |
var arquivo_entrada = __dirname + '/index.html'; | |
var arquivo_saida = __dirname + '/output.html'; | |
var copiar_para_clipboard = true; |
This file contains 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 | |
// Ver para conferir os tipos de error reporting | |
// http://php.net/manual/pt_BR/function.error-reporting.php | |
error_reporting(E_ALL & ~E_DEPRECATED & ~E_WARNING); | |
ini_set('display_errors', 1); | |
?> |
OlderNewer