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 Component from '@ember/component'; | |
export default Component.extend({ | |
actions: { | |
placeChanged(place) { | |
this.set('placeResponse', place); | |
} | |
} | |
}); |
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
{ | |
"color_scheme": "Packages/User/SublimeLinter/Slush & Poppies (SL).tmTheme", | |
"folder_exclude_patterns": | |
[ | |
".svn", | |
".git", | |
".hg", | |
"CVS", | |
"tmp/class-*", | |
"tmp/es_*", |
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
Failures: | |
1) Luma::SamlSettings#initialize valid url behaves like it returns valid idp metadata should have the right interface | |
Failure/Error: @xml = @parser.send(:get_idp_metadata, @options[:url], true) | |
OneLogin::RubySaml::HttpError: | |
Failed to fetch idp metadata | |
Shared Example Group: "it returns valid idp metadata" called from ./spec/lib/luma/saml_settings_spec.rb:60 | |
# /Users/danielmunerasanchez/.rvm/gems/ruby-2.2.5/gems/ruby-saml-1.4.0/lib/onelogin/ruby-saml/idp_metadata_parser.rb:91:in `get_idp_metadata' | |
# ./lib/luma/saml_settings.rb:36:in `initialize' |
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 tree_by_levels(node) | |
return [] unless node | |
array = [node] | |
result = [] | |
i=0 | |
while (i+1) <= array.size | |
array << array[i].left if array[i].left | |
array << array[i].right if array[i].right | |
result << array[i].value | |
i += 1 |
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
#Refund deposit | |
deposit = Subscription.find(<id>).billing_items.reject{|item| item.amount != 1000 }.first | |
invoice_id = Stripe::InvoiceItem.retrieve(deposit.stripe_invoiceitem_id).invoice | |
charge_id = Stripe::Invoice.retrieve(invoice_id).charge | |
charge = Stripe::Charge.retrieve(charge_id) | |
refund = charge.refund(amount: deposit.amount,reason: "requested_by_customer") |
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 | |
/** | |
* @package turnitintool | |
* @copyright 2012 Turnitin | |
*/ | |
defined('MOODLE_INTERNAL') || die; | |
if ($ADMIN->fulltree) { | |
require_once($CFG->dirroot.'/mod/turnitintool/lib.php'); |
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
jq162 = jQuery.noConflict(); | |
(function( $ ){ | |
$.fn.pad = function( options ) { | |
var settings = { | |
'host' : 'http://beta.etherpad.org', | |
'baseUrl' : '/p/', | |
'showControls' : false, | |
'showChat' : false, |
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(window,$,undefined){$.fn.extend({archaiusCustomBlocks:function(options){var defaults={regionLocation:"pre",regionTabClass:"div.header-tab",blockContainerClass:".region-content",editContainerClass:".commands"};var options=$.extend(defaults,options);return this.each(function(){var o=options;var obj=$(this);var $tabsId="tabs-"+o.regionLocation;obj.find(o.blockContainerClass).attr("id",$tabsId);var tabs=$("#"+$tabsId);tabs.prepend($(o.regionTabClass+":first",obj));var subcont=obj.find("div.block",tabs);if($(o.regionTabClass,obj).length>1){$(o.regionTabClass,obj).on("click",{blocks:subcont},function(event){var data=event.data;var $this=$(this);if(!$this.hasClass("current")){obj.find(o.regionTabClass).removeClass("current");$this.addClass("current");var index=obj.find(o.regionTabClass).index($(this));data.blocks.slideUp().eq(index).slideDown()}obj.find(o.regionTabClass+":last").css({"border-radius":"0px 0px 5px 5px","-moz-border-radius":"0px 0px 5px 5px","-webkit-border-radius":"0px 0px 5px 5px"});if($th |
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
Method | |
def self.search(city,movie,date) | |
url = "http://www.cinecolombia.com/movie.aspx?idciudad=#{city}&idpelicula=#{movie}&caracteristicas=987&fecha=#{date}" | |
respond = Hpricot(open(url)) | |
result = (respond/"div#Subt/div/div#parrilla") | |
return result.inner_html.gsub(/\s+/, " ").strip | |
end |
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
class WorkshopsController < BaseController | |
include Viewable | |
load_and_authorize_resource :except => :index | |
# before_filter :load_header, :only => [:directorio, :laboratorios] | |
uses_tiny_mce(:only => [:edit, :update, :create, :new]) do | |
AppConfig.default_mce_options | |
end | |