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
FROM ubuntu:18.04 | |
COPY ./sources_list /etc/apt/sources.list | |
#The above fixes the 404 by providing an alternate repo specific to 18.04 | |
#FROM ubuntu:latest | |
RUN apt-get update -y | |
RUN apt-get upgrade -y | |
RUN apt install -y wget build-essential libaio-dev python3 python3-setuptools python3-pip python3-dev zip unzip net-tools iputils-ping | |
#CMD ping -c 4 www.google.com | |
#RUN easy-install pip |
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
from flask import Flask | |
from jinja2 import Environment, FileSystemLoader | |
j2_env = Environment(loader=FileSystemLoader('templates'), trim_blocks=True) | |
app = Flask(__name__) | |
@app.route('/') | |
def home(): | |
return j2_env.get_template('index.j2').render(name='Nitin') |
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
import React, { Component } from 'react'; | |
import './App.css'; | |
import { BrowserRouter, Route, Link } from 'react-router-dom'; | |
import Home from './components/Home' | |
class App extends Component { | |
render() { | |
return ( | |
<BrowserRouter> | |
<Route exact path="/" component={Home} /> |
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
<!doctype html><html> | |
<head> | |
<title></title> | |
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/font-awesome/4.7.0/css/font-awesome.min.css" type="text/css" /> | |
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0-alpha.6/css/bootstrap.min.css" integrity="sha384-rwoIResjU2yc3z8GV/NPeZWAv56rSmLldC3R/AZzGRnGxQQKnKkoFVhFQhNUwEyJ" crossorigin="anonymous"> | |
<script> | |
var rows = [] | |
function saveItem() { |
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
<!doctype html><html> | |
<head> | |
<title></title> | |
<style> | |
body { | |
background-color: black; | |
} | |
@keyframes wiggum { | |
0% { transform: translateX(0px); } |
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
<!doctype html><html> | |
<head> | |
<title></title> | |
<style> | |
@keyframes glowshift { from { text-shadow: 0px 0px 25px #00f; } to { text-shadow: 0px 0px 25px #0f0; } } | |
@keyframes blinker { from {opacity: 1;} to {opacity: 0.05}; } | |
/* @keyframes buzzingPointObj { | |
0% { transform: translate3d(0,0,0,0); } | |
10% { transform: translate3d(800px, 160px, 0); } | |
20% { transform: translate3d(800px, 00px, 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
FROM python:2.7-slim | |
WORKDIR /app | |
ADD . /app | |
RUN pip install --trusted-host pypi.python.org -r requirements.txt | |
EXPOSE 80 | |
ENV NAME World | |
CMD [ "python", "app.py" ] |
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
import React, { Component } from 'react'; | |
import './App.css'; | |
import { createStore } from 'redux'; | |
const CHANGE_CARD_VISIBILITY = 'CHANGE_CARD_VISIBILITY'; | |
function rootReducer(state = [], action) { | |
switch(action.type) { | |
case CHANGE_CARD_VISIBILITY: |
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
--PLSQL 'Table-valued function' | |
create type my_dt_type is object(dt date); | |
/ | |
create type my_dt_tab_type is table of my_dt_type; | |
/ | |
create or replace function get_all_dates(p_start IN DATE, p_end IN DATE) | |
return my_dt_tab_type pipelined is |
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
<!-- | |
Name: Cascading Dropdowns for Static Data | |
Description: Provide a dictionary object using JSON and the pair of dropdowns to link together | |
Author: Nitin | |
--> | |
<!doctype html><html><head> | |
<script> | |
function ddlpopulate(ddl, arr) { | |
ddl.options.length = 0; |
NewerOlder