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
import { Component, OnInit } from '@angular/core'; | |
import { Product } from '../shared/models/character'; | |
import { ProductService } from './character.service'; | |
@Component({ | |
selector: 'product-list', | |
templateUrl: './app/products/product-list.component.html', | |
providers: [ProductService] | |
}) |
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
# ============================================================================== | |
# | |
# SchoolSmart Schedule Import Template for New Milford Public Schools | |
# | |
# Questions? Email us at team@getschoolsmart.com | |
# | |
# ============================================================================== | |
# ------------------------------------------------------------------------------ | |
# |
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
function initMap() { | |
navigator.geolocation.getCurrentPosition(centerMap, locationError); | |
$scope.correctDir = false; | |
var options = { | |
types: [], | |
componentRestrictions: {country: 'co'} | |
}; | |
var input = document.getElementById("address-auto"); | |
var autocomplete = new google.maps.places.Autocomplete(input, options); | |
autocomplete.addListener('place_changed', function() {placeMarker(autocomplete)}); |
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
function loadImageErrorOverride(errEvt) { | |
var pic = errEvt.target; | |
if (!pic.crossOrigin) return print('Failed to reload ' + pic.src + '!'); | |
print('Attempting to reload it as a tainted image now...'); | |
pic.crossOrigin = null, pic.src = pic.src; | |
} | |
function loadImageBypass(URL) { |
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
.stimulus-controller data-controller="obligation" | |
.modal.fade id="obligation-modal" tabindex="-1" role="dialog" aria-labelledby="obligation-modal" | |
.modal-dialog role="document" | |
.modal-content | |
= simple_form_for([current_owner, @financial_obligation], validate: true, input_html: {class: 'default_class', data: {model: 'financial_obligation'}}) do |f| | |
.modal-header | |
h4#obligation-modal-title.modal-title Nueva Obligación | |
button type="button" class="close" data-dismiss="modal" aria-label="Close" | |
span aria-hidden="true" × | |
.modal-body#modal-financial-obligations-body |
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
<form class="simple_form default_class" id="new_financial_obligation" data-model="financial_obligation" novalidate="novalidate" | |
data-client-side-validations= | |
"{"html_settings":{"type":"SimpleForm::FormBuilder","error_class":null,"error_tag":"div","wrapper_error_class":"form-group-invalid","wrapper_tag":"div","wrapper_class":"form-group","wrapper":"vertical_form"},"number_format":{"separator":".","delimiter":","},"validators":{"financial_obligation[holder_id]":{"presence":[{"message":"debe existir"}]},"financial_obligation[financial_entity_id]":{"presence":[{"message":"no puede estar en blanco"}]},"financial_obligation[financial_product_id]":{"presence":[{"message":"no puede estar en blanco"}]} |
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
module ApplicationCable | |
class Connection < ActionCable::Base::Connection | |
# we need to keep tenant information for subsequent messages, | |
# so let's store it as an identifier | |
identified_by :tenant | |
def connect | |
# assuming you store current tenant in session | |
self.tenant = request.session[:current_tenant] | |
reject_unauthorized_connection unless tenant |
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
#views/categories/_category.html.slim | |
tr | |
td = category.name | |
td | |
= belonging_products(category.products) |
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 | |
namespace Instagram; | |
// other classes to use | |
use Instagram\Request\Request; | |
use Instagram\Request\Curl; | |
use Instagram\Request\Params; | |
use Instagram\Request\Fields; |
OlderNewer