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 Class1 | |
| def dupa | |
| puts "Dupa from Class1" | |
| end | |
| end | |
| class Class2 | |
| def dupa | |
| puts "Dupa from Class2" | |
| 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
| #include <stdio.h> | |
| typedef unsigned short U16; | |
| typedef unsigned char U8; | |
| static const U16 crctab16 [] = { | |
| 0X0000, 0X1189, 0X2312, 0X329B, 0X4624, 0X57AD, 0X6536, 0X74BF, 0X8C48, 0X9DC1, 0XAF5A, | |
| 0XBED3, 0XCA6C, 0XDBE5, 0XE97E, 0XF8F7, 0X1081, 0X0108, 0X3393, 0X221A, 0X56A5, 0X472C, | |
| 0X75B7, 0X643E, 0X9CC9, 0X8D40, 0XBFDB, 0XAE52, 0XDAED, 0XCB64, 0XF9FF, 0XE876, 0X2102, | |
| 0X308B, 0X0210, 0X1399, 0X6726, 0X76AF, 0X4434, 0X55BD, 0XAD4A, 0XBCC3, 0X8E58, 0X9FD1, |
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
| draftActivity.end = d3.event.x; | |
| console.log(draftActivity); | |
| const startAt = draftActivity.start_at; | |
| console.log(startAt); | |
| const endAt = dragRampDateTime(draftActivity.end); | |
| console.log(endAt); | |
| console.log(startAt); | |
| console.log(endAt); |
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 dragEnd(data) { | |
| draftActivity.end = d3.event.x; | |
| draftActivity.container.remove(); | |
| console.log(`start: ${draftActivity.start}`); | |
| console.log(`end: ${draftActivity.end}`); | |
| // dragRampDateTime(new Date()); |
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 React from 'react' | |
| class DatePicker extends React.Component { | |
| constructor(props) { | |
| super(props); | |
| } | |
| componentDidMount() { | |
| let self = this; |
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 React from 'react' | |
| import ReactDOM from 'react-dom' | |
| import isEmpty from 'lodash/isEmpty' | |
| import request from 'superagent' | |
| import { objectToQueryString, removeHashFromUrl, locationHashParams } from './utils'; | |
| import FactoryWidget from './components/factory_widget' | |
| import './stylesheets/style.scss'; |
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
| # This file is used by Rack-based servers to start the application. | |
| require ::File.expand_path('../config/environment', __FILE__) | |
| run Rails.application | |
| if Rails.env.development? | |
| options = Rails::Server.new.options | |
| Launchy.open("http://#{options[:Host]}:#{options[:Port]}/admin") | |
| 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
| import React from 'react' | |
| import ReactDOM from 'react-dom' | |
| import BigCalendar from 'react-big-calendar' | |
| import moment from 'moment' | |
| import request from 'superagent' | |
| // require('globalize/lib/cultures/globalize.culture.pl') | |
| import css from 'react-big-calendar/lib/css/react-big-calendar.css' | |
| import AbsenceCalendar from './calendar/absence_calendar' |
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
| {* | |
| * 2007-2014 PrestaShop | |
| * | |
| * NOTICE OF LICENSE | |
| * | |
| * This source file is subject to the Academic Free License (AFL 3.0) | |
| * that is bundled with this package in the file LICENSE.txt. | |
| * It is also available through the world-wide-web at this URL: | |
| * http://opensource.org/licenses/afl-3.0.php | |
| * If you did not receive a copy of the license and are unable to |
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
| <!-- info o dostawcy --> | |
| <td> | |
| {assign var=product_features value=Product::getFeaturesStatic($product['product_id'])} | |
| {foreach from=$product_features item=raw_feature} | |
| {assign var=feature value=Feature::getFeature($current_id_lang, $raw_feature["id_feature"])} | |
| {if $feature["name"] == "supplier"} | |
| {assign var=feature_value value=FeatureValue::getFeatureValueLang($raw_feature["id_feature_value"])} | |
| <b>{$feature_value[0]["value"]}</b> | |
| {/if} |