moved to here: https://github.com/luisrudge/install-scripts/blob/master/elementary/install.sh
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
| Update-ExecutionPolicy Unrestricted | |
| cinst ncrunch2.vs2013 | |
| cinst resharper | |
| choco install GitDiffMargin | |
| Install-ChocolateyVsixPackage WebEssentials2013 http://visualstudiogallery.msdn.microsoft.com/56633663-6799-41d7-9df7-0f2a504ca361/file/105627/37/WebEssentials2013.vsix | |
| Install-ChocolateyVsixPackage BuildVision http://visualstudiogallery.msdn.microsoft.com/23d3c821-ca2d-4e1a-a005-4f70f12f77ba/file/95980/7/BuildVisi |
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
| <aside class="sidebar"> | |
| <nav class="menu"> | |
| <div class="menu-item"> | |
| <a href="" class="menu-item__link"> | |
| <span class="menu-item__icon"> | |
| <i class="ion-ios-home-outline"></i> | |
| </span> | |
| <span class="menu-item__text"> | |
| Home | |
| </span> |
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
| ################## | |
| # Privacy Settings | |
| ################## | |
| # Privacy: Let apps use my advertising ID: Disable | |
| Set-ItemProperty -Path HKCU:\SOFTWARE\Microsoft\Windows\CurrentVersion\AdvertisingInfo -Name Enabled -Type DWord -Value 0 | |
| # To Restore: | |
| #Set-ItemProperty -Path HKCU:\SOFTWARE\Microsoft\Windows\CurrentVersion\AdvertisingInfo -Name Enabled -Type DWord -Value 1 | |
| # Privacy: SmartScreen Filter for Store Apps: Disable | |
| Set-ItemProperty -Path HKCU:\SOFTWARE\Microsoft\Windows\CurrentVersion\AppHost -Name EnableWebContentEvaluation -Type DWord -Value 0 |
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
| ```yml | |
| before_script: | |
| - apk add --no-cache --repository http://dl-cdn.alpinelinux.org/alpine/edge/main --repository http://dl-cdn.alpinelinux.org/alpine/edge/community docker | |
| - docker -v | |
| - service docker start | |
| ``` |
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 'loaders.css/loaders.css'; | |
| import './index.scss'; | |
| import React, { PropTypes } from 'react'; | |
| const LoadingIndicator = React.createClass({ | |
| propTypes: { | |
| children: PropTypes.func.isRequired, | |
| isLoading: PropTypes.bool.isRequired | |
| }, | |
| render: function() { |
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, { useState, useEffect, useContext } from "react"; | |
| import createAuth0Client from "@auth0/auth0-spa-js"; | |
| import Auth0Client from "@auth0/auth0-spa-js/dist/typings/Auth0Client"; | |
| interface Auth0Context { | |
| isAuthenticated: boolean; | |
| user: any; | |
| loading: boolean; | |
| popupOpen: boolean; | |
| loginWithPopup(options: PopupLoginOptions): Promise<void>; |
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
| const Products = () => { | |
| const { loading, data: products, refetch } = useApiGET(`/products`); | |
| const api = useApi(); | |
| if (loading) { | |
| return <Loading />; | |
| } | |
| return ( | |
| <div> | |
| {products.map(p => ( |
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
| const TheComponent = () => { | |
| const [error, setError] = React.useState(); | |
| React.useEffect(() => { | |
| const asyncOperation = async () => { | |
| // do something async | |
| }; | |
| asyncOperation().catch(e => { | |
| setError(() => { |