Skip to content

Instantly share code, notes, and snippets.

View denikus's full-sized avatar
🎯
Focusing

Denis Soloshenko denikus

🎯
Focusing
View GitHub Profile
@denikus
denikus / .env
Last active September 20, 2022 17:09
# 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
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)
{
referies: [
{id: , name: },
{id: , name: }
]
host: {
score: 5,
first_part_fouls: 1,
second_part_fouls: 2,
players: [
@denikus
denikus / mrp_easy.rb
Created April 28, 2017 16:34
mrp_easy customer_order
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 }
class window.Calendar
constructor: (params)->
this.params = params
#init calendar widget
this.init_calendar()
update_somethin:() =>
console.log('sdfsdfsdf')
init_calendar: ()=>
$("#blabla").fullCalendar({
@denikus
denikus / session_controller.rb
Created January 18, 2012 10:01
acceptance test for signin
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 => []}