Skip to content

Instantly share code, notes, and snippets.

View default-writer's full-sized avatar
🚩
creating an app

default-writer default-writer

🚩
creating an app
View GitHub Profile
@setlocal ENABLEDELAYEDEXPANSION
@echo off
:loop
set /a count = 0
for /f "eol=! tokens=1,2,3,* delims=: " %%i in ('ncu -g') do @(
if "%%j"=="%%l" @(
@echo %%i %%j
) else @(
if "%%i"=="All" @(
@echo %%i: %%j - %%l
@setlocal ENABLEDELAYEDEXPANSION
@echo off
:loop
@set /a count = 0
@for /f "eol=! tokens=1,2,3,* delims= " %%i in ('ncu -u') do @(
@if "%%j"=="%%l" @(
echo %%i %%j
) else @(
@if "%%i"=="All" @(
@echo %%i: %%j - %%l
@echo off
cmd /C "npm -g install yo bower grunt grunt-cli grunt-bowercopy grunt-oraclejet load-grunt-config oraclejet-tooling generator-oraclejet npm-check-updates cordova"
cmd /C "yo oraclejet extranet-dev --template=blank"
cd extranet-dev
echo @echo off > install.cmd
echo cd ../extranet-dev >> install.cmd
echo cmd /C "yo oraclejet:add-sass" >> install.cmd
echo cmd /C "npm-check-updates -u" >> install.cmd
echo cmd /C "npm i" >> install.cmd
echo cmd /C "yo oraclejet:add-theme extranet" >> install.cmd
@echo off
cmd /C "npm -g install yo bower grunt grunt-cli grunt-bowercopy grunt-oraclejet load-grunt-config oraclejet-tooling generator-oraclejet npm-check-updates cordova"
cmd /C "yo oraclejet flexbox-dev --template=blank"
cd flexbox-dev
echo @echo off > install.cmd
echo cd ../flexbox-dev >> install.cmd
echo cmd /C "npm-check-updates -u" >> install.cmd
echo cmd /C "npm i" >> install.cmd
cmd /C "install.cmd"
1. create and run install.cmd
copy content below into install.cmd file:
@echo off
cmd /C "npm -g install yo bower grunt grunt-cli grunt-bowercopy grunt-oraclejet load-grunt-config oraclejet-tooling generator-oraclejet npm-check-updates cordova"
cmd /C "yo oraclejet extranet-dev --template=navdrawer"
cd extranet-dev
echo > install.cmd
echo cd ../extranet-dev >> install.cmd
1. Flexbox demo
https://jsfiddle.net/hack2root/t15sguvm/16/
@default-writer
default-writer / style.css
Created April 26, 2017 14:52
How to center modal window on the screen using CSS
.container {
position: absolute;
padding: 0;
margin: 0;
left: 0;
top: 0;
width: 100vw; /* margin: 0 and width: 100vw:
100vw means the same as width:100% including the document margin,
100vw is calculated relative to document layout including document margin,
100% is calculated relative to parent layout */
@default-writer
default-writer / style.css
Created April 26, 2017 14:54
Links to modal window layout demo
https://codepen.io/hack2root/pen/QvdLLN
@default-writer
default-writer / EF Core 2.0 ASP.NET Core 2.0 MVC *.csproj
Created December 6, 2017 20:56
ASP.NET Core 2.0 MVC + EF Core 2.0 fixes
<Project Sdk="Microsoft.NET.Sdk.Web">
<PropertyGroup>
<TargetFramework>netcoreapp2.0</TargetFramework>
<!--https://blogs.msdn.microsoft.com/dotnet/2017/08/14/announcing-entity-framework-core-2-0-->
<AutoGenerateBindingRedirects>true</AutoGenerateBindingRedirects>
</PropertyGroup>
<ItemGroup>
<PackageReference Include="Microsoft.AspNetCore.All" Version="2.0.3" />
<PackageReference Include="Npgsql.EntityFrameworkCore.PostgreSQL" Version="2.0.0" />
<!--https://docs.microsoft.com/en-us/ef/core/get-started/aspnetcore/existing-db#blogging-database-->