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
.page { | |
position: absolute; | |
top: 0; | |
bottom: 0; | |
left: 0; | |
right: 0; | |
} | |
.out { | |
animation: out 450ms ease-out; |
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 * as fs from "fs"; | |
/* | |
* Apstrahovanje logike | |
* "pakovanje funckionalnosti tako da moze kasnije da se poziva sa promenjenim parametrima" | |
* */ | |
function split({ inputPath, outputFolder, fileNameSuffix, inputSeparator, outputSeparator }) { | |
// read file contents | |
fs.readFile(inputPath, 'utf8', (err: any, data: string) => { | |
// csv files are read like string, so split them up into rows by new line ("\n") and remove "\r" from each row |
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 * as _ from 'lodash'; | |
import { input } from './input'; | |
type URLTable = URLTableEntry[]; | |
interface URLTableEntry { | |
url: string; | |
keywords: string[]; | |
} | |
const uniqueUrls: string[] = _.uniq(_.flattenDeep(input.map(({ urls }) => urls))); |
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 | |
if (!function_exists('http_parse_headers')) { | |
function http_parse_headers($raw_headers) | |
{ | |
$headers = array(); | |
$key = ''; // [+] | |
foreach(explode("\n", $raw_headers) as $i => $h) | |
{ | |
$h = explode(':', $h, 2); |
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
`{ | |
"ageRanges": ["0-5", "5-10"], | |
"genders": ["Male", "Female"], | |
"languages": ["en-EN"], | |
"serviceOptions": [], | |
"localTopics": [ | |
"history", | |
"parks", | |
"city tours", | |
"nature tours", |
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 PropTypes from "prop-types"; | |
import React, { useEffect, useState } from "react"; | |
import styled from "styled-components"; | |
import { color } from "../../theme"; | |
const Container = styled.div` | |
margin: 12px 0; | |
`; | |
const ListCardContainer = styled.div` |
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
...imports | |
import IntlContext from "......./intl.context" | |
// Za class-based komponente | |
class BenefitCockpit extends Component { | |
static contextType = IntlContext; | |
render() { | |
return ( | |
<h1>{this.context.member.suggest.title}</h1> | |
) |
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 PropTypes from "prop-types"; | |
import React, { useEffect } from "react"; | |
import { animated, useSpring } from "react-spring"; | |
import styled from "styled-components"; | |
/* | |
* Works like this | |
* <Stat value={164} label={"Lines of code"} /> | |
* */ |
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, {Component} from 'react'; | |
import './App.css'; | |
import IntlContext from "./intl.context"; | |
import Bla from "./Bla" | |
import en from "./locales/en" | |
import sr from "./locales/sr" | |
import LanguageSwitch from "./LanguageSwitch"; | |
const translations = { en, sr }; // prevodi |
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
var imports = {}; | |
function importAll(r) { | |
r.keys().forEach(key => { | |
const module = r(key); | |
const name = key.split("./")[1].split(".")[0]; | |
imports[name] = module.default; | |
}); | |
} |
NewerOlder