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 Users::SessionController < Devise::SessionsController | |
def new | |
render :nothing => true | |
end | |
def create | |
respond_to do |format| | |
format.json do | |
response_data = {:email => [], :password => [], :general => []} |
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 window.Calendar | |
constructor: (params)-> | |
this.params = params | |
#init calendar widget | |
this.init_calendar() | |
update_somethin:() => | |
console.log('sdfsdfsdf') | |
init_calendar: ()=> | |
$("#blabla").fullCalendar({ |
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
meal_order = MealOrder.find(meal_order_id) | |
products = [] | |
ord = 1 | |
meal_order.meal_components.each do |component| | |
products << { ord: ord, | |
article_id: component.mrp_stock_id, | |
quantity: 1, | |
item_price: 0.0, | |
total_price: 0.0 } |
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
{ | |
referies: [ | |
{id: , name: }, | |
{id: , name: } | |
] | |
host: { | |
score: 5, | |
first_part_fouls: 1, | |
second_part_fouls: 2, | |
players: [ |
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 pageFunction(context) { | |
var $ = context.jQuery; // get query context | |
var priceElem = $(".shopee-product-info__header__real-price"); // main selector what we are waiting for, mounting | |
function delay(selector, callback, count) { // delay function | |
if (selector.length && count !== 0) { // if selector is on page and count isnt zero move to get data callback | |
return callback(); // get data callback | |
} else if (count === 0) { // if count zero, we are already wait 20*6000 ms do context.skipOutput(); | |
context.skipOutput(); // i dont know what is that | |
} else { // if not previous action then wait 6s and try agin until count === 0 (20 times) |
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
# Default values are optimized for production to avoid having to configure | |
# much in production. | |
# | |
# However it should be easy to get going in development too. If you see an | |
# uncommented option that means it's either mandatory to set or it's being | |
# overwritten in development to make your life easier. | |
# Rather than use the directory name, let's control the name of the project | |
COMPOSE_PROJECT_NAME=navegante |