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
function Read-HtmlPage { | |
param ([Parameter(Mandatory=$true, Position=0, ValueFromPipeline=$true)][String] $Uri) | |
# Invoke-WebRequest and Invoke-RestMethod can't work properly with UTF-8 Response so we need to do things this way. | |
[Net.HttpWebRequest]$WebRequest = [Net.WebRequest]::Create($Uri) | |
[Net.HttpWebResponse]$WebResponse = $WebRequest.GetResponse() | |
$Reader = New-Object IO.StreamReader($WebResponse.GetResponseStream()) | |
$Response = $Reader.ReadToEnd() | |
$Reader.Close() |
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": "Cardano Test Pool - A", | |
"description": "Cardano Test pool", | |
"ticker": "TEST-A", | |
"homepage": "https://github.com/abracadaniel/cardano-node-docker" | |
} |
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
function Write-BranchName () { | |
try { | |
$branch = git rev-parse --abbrev-ref HEAD | |
if ($branch -eq "HEAD") { | |
# we're probably in detached HEAD state, so print the SHA | |
$branch = git rev-parse --short HEAD | |
Write-Host " ($branch)" -ForegroundColor "red" | |
} | |
else { |
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
git_branch() { | |
git branch 2> /dev/null | sed -e '/^[^*]/d' -e 's/* \(.*\)/ (\1)/' | |
} | |
if [[ ${EUID} == 0 ]] ; then | |
PS1='\[\033[01;31m\]\h\[\033[01;36m\] \W\[\033[01;31m\]\[\033[00;37m\]$(git_branch 2>/dev/null)\[\033[01;32m\]\$\[\033[00m\] ' | |
else | |
PS1='\[\033[01;32m\]\u@\h\[\033[01;37m\] \W\[\033[01;32m\]\[\033[00;37m\]$(git_branch 2>/dev/null)\[\033[01;32m\]\$\[\033[00m\] ' | |
fi |
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
--- node_modules/@angular-devkit/build-angular/src/angular-cli-files/models/webpack-configs/styles.js | |
+++ node_modules/@angular-devkit/build-angular/src/angular-cli-files/models/webpack-configs/styles.js | |
@@ -220,7 +220,7 @@ function getStylesConfig(wco) { | |
options: { | |
ident: 'embedded', | |
plugins: postcssPluginCreator, | |
- sourceMap: cssSourceMap | |
+ sourceMap: cssSourceMap ? 'inline' : false | |
} | |
}, |
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
export PATH="/usr/local/bin:$PATH" | |
# Git branch in prompt. | |
parse_git_branch() { | |
git branch 2> /dev/null | sed -e '/^[^*]/d' -e 's/* \(.*\)/ (\1)/' | |
} | |
PS1='\[\033[32m\]' # change to green | |
PS1="$PS1"'\u@\h ' # user@host<space> |
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
/** | |
* AngularJS example directive. | |
* Allows you to modify the page DOM and CSS styles before printing by exexuting the passed expression. | |
* Will force a $digest phase before the print operation. | |
* | |
* Example: <div ng-class="{printed: isPrinted}" on-before-print="printed = true" /> | |
*/ | |
module.directive('onBeforePrint', ['$window', '$rootScope', '$timeout', function onBeforePrint($window, $rootScope, $timeout) { | |
var beforePrintDirty = false; | |
var listeners = []; |
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 this file after select2 bootstrap theme. Content won't be centered if you don't include this file. | |
.select2-container--bootstrap { | |
.select2-selection--multiple { | |
.select2-selection__choice { | |
margin-top: calc(#{$s2bs-padding-base-vertical} - 1px); | |
} | |
.select2-search--inline .select2-search__field { | |
height: $s2bs-input-height-base; | |
} |
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
// globals jQuery | |
(function ($) { | |
'use strict'; | |
// TODO: Replace pluginExample and PluginExample with your plugin name | |
$.fn.pluginExample = function (option/*, varArgs*/) { | |
var args = Array.prototype.slice.call(arguments, 1); | |
return this.each(function () { | |
var $element = $(this); |
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
#!/usr/bin/env node | |
// Disables crosswalk release time SSL errors check | |
// v1.0 | |
// Install mkdirp before using this hook. Run npm install mkdirp --save | |
// Place this file in hooks/after-prepare | |
// Confirmed working with Crosswalk 1.7.2 | |
var fs = require('fs'); | |
var path = require('path'); |
NewerOlder