store = Spree::Store.current
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
| dig +trace www.estrelabet.com | |
| ; <<>> DiG 9.18.18-0ubuntu0.22.04.2-Ubuntu <<>> +trace www.estrelabet.com | |
| ;; global options: +cmd | |
| . 87203 IN NS m.root-servers.net. | |
| . 87203 IN NS f.root-servers.net. | |
| . 87203 IN NS i.root-servers.net. | |
| . 87203 IN NS l.root-servers.net. | |
| . 87203 IN NS d.root-servers.net. | |
| . 87203 IN NS a.root-servers.net. |
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
| import Config | |
| defmodule Environment do | |
| @moduledoc """ | |
| This modules provides various helpers to handle environment metadata | |
| """ | |
| def get(key), do: System.get_env(key) | |
| def get_boolean(key) do |
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
| def handle_invalid_entries(reasons, uid, pid) | |
| if reasons.include?(:person_not_registered) | |
| @logger.info("[Toggl::TimeEntryImporter] Person not registered: #{uid}") | |
| end | |
| if reasons.include?(:without_description) | |
| @logger.info("[Toggl::TimeEntryImporter] Time entry without description from user #{uid}") | |
| end | |
| if reasons.include?(:without_project) |
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 formatForm = function(){ | |
| var that = this; | |
| this.$form = $('form'); | |
| this.startup = function(){ | |
| if(!this.$form[0]){ return false; } | |
| this.$form.find('input.tel').mask("(99) 9?9999-9999"); | |
| this.$form.find('input.cep').mask("99999-999"); | |
| this.$form.find('input.cpf').mask("999.999.999-99"); |
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
| gem install eventmachine -- --with-cppflags=-I/usr/local/opt/openssl/include |
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
| # encoding: UTF-8 | |
| module Searchable | |
| extend ActiveSupport::Concern | |
| included do | |
| include Elasticsearch::Model | |
| settings index_configuration do | |
| mapping do |
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
| # encoding: UTF-8 | |
| module Searchable | |
| extend ActiveSupport::Concern | |
| included do | |
| include Elasticsearch::Model | |
| include Elasticsearch::Model::Callbacks | |
| settings index_configuration do |
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 vm = this; | |
| var databaseColumn = firebase.database().ref('database'); | |
| vm.count = 0; | |
| databaseColumn.on('value', function(snapshot) { | |
| snapshot.forEach(function() { | |
| $scope.count++; | |
| }); | |
| }); |
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
| (function() { | |
| 'use strict'; | |
| angular | |
| .module('app.restaurants') | |
| .controller('RestaurantsController', RestaurantsController); | |
| RestaurantsController.$inject = ['RestaurantsService', 'LocationStateService', '$scope', '$location', '$ionicPopup', '$ionicScrollDelegate', 'FilterService', '$timeout']; | |
| function RestaurantsController(RestaurantsService, LocationStateService, $scope, $location, $ionicPopup, $ionicScrollDelegate, FilterService, $timeout) { |
NewerOlder