Skip to content

Instantly share code, notes, and snippets.

View zivanovicb's full-sized avatar
👋

Branko Zivanovic zivanovicb

👋
View GitHub Profile
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;
@zivanovicb
zivanovicb / .cs
Created June 15, 2017 19:43
ImageList
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;
@zivanovicb
zivanovicb / .cs
Created June 15, 2017 19:49
Interface
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace WindowsFormsApplication21
{
interface Interfejs
{
@zivanovicb
zivanovicb / .cs
Created June 15, 2017 19:50
Klasa sa interfejsom
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;
@zivanovicb
zivanovicb / .js
Created July 8, 2017 21:14
React rounded button reusable component
import React from 'react';
import styled from 'styled-components';
const RoundedButton = styled.button`
padding:1.15em 2.5em;
font-size:0.8em;
font-weight:${props => props.weight};
color:${props => props.color};
background:${props => props.background || 'white'};
border:0;
@zivanovicb
zivanovicb / .js
Created July 9, 2017 11:01
React Icon component example
import React from 'react';
import styled from 'styled-components';
const Wrapper = styled.a`
margin-right:20px;
:hover{
path{
fill:${props => props.hoverFill || props.theme.navy};
}
}
import styled from "styled-components";
const ButtonWithIcon = styled.button`
background-image: url(${props => props.url});
background-size: 14px 14px;
background-position: 10px center;
background-repeat: no-repeat;
background-color: ${props => props.bg || "#47B4FE"};
padding: ${props => props.pTB || "10px"} 16px;
padding-left: 32px;
var React = window.React;
var ReactDOM = window.ReactDOM;
window.onload = function () {
// opcije:
// 1: "stil-kurir"
// 2: "kurir"
// 3: "espreso"
// 4: "glossy-espreso"
ReactDOM.render(
React.createElement(window.App, { publisher: "kurir" }),
FROM node:6.9.2
VOLUME ./ /home/video/uploader
WORKDIR /home/video/uploader
RUN yarn install
CMD yarn start
/bin/sh -c "trap : TERM INT; (while true; do sleep 1000; done) & wait"