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
| #!/usr/bin/env ruby | |
| require 'Base64' | |
| require 'mime/types' | |
| ARGV.each do |file| | |
| puts ['File: ', file].join | |
| puts [(MIME::Types.of file)[0], ';base64,', (Base64::encode64 (File.read file)).gsub("\n", "") ].join if FileTest::exist? file | |
| puts "\n" | |
| end |
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
| Highcharts.Chart.prototype.callbacks.push(function(chart) { | |
| var hasTouch = document.documentElement.ontouchstart !== undefined, | |
| mouseTracker = chart.tracker, | |
| container = chart.container, | |
| mouseMove; | |
| mouseMove = function (e) { | |
| // let the system handle multitouch operations like two finger scroll | |
| // and pinching | |
| if (e && e.touches && e.touches.length > 1) { |
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
| (function () { | |
| var originalGetAttribs = Highcharts.seriesTypes.column.prototype.getAttribs; | |
| Highcharts.seriesTypes.column.prototype.getAttribs = function () { | |
| var merge = Highcharts.merge, | |
| series = this, | |
| points = series.points, | |
| stateOptions = series.options.states, | |
| negativeColor = series.options.negativeColor, |
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
| Highcharts.Series.prototype.toggleConnected = function(visible) { | |
| var visibility = visible || !this.visible, | |
| series = this.options.connectedSeries, | |
| l = series.length, | |
| serie; | |
| while (l--) { | |
| serie = this.chart.get(series[l]); | |
| serie.setVisible(visibility, false); | |
| serie.checkbox && (serie.checkbox.checked = visibility); |
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
| (function(HC){ | |
| var seriesTypes = Highcharts.seriesTypes; | |
| seriesTypes.candlestick.prototype.getAttribs = function () { | |
| seriesTypes.column.prototype.getAttribs.apply(this, arguments); | |
| var series = this, | |
| options = series.options, | |
| stateOptions = options.states, |
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
| (function (HC) { | |
| var drawPoints = HC.seriesTypes.flags.prototype.drawPoints; | |
| HC.seriesTypes.flags.prototype.drawPoints = function () { | |
| drawPoints.call(this); | |
| var points = this.points, | |
| l, i; | |
| for (i = 0, l = points.length; i < l; i++) { |
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
| package main | |
| import ( | |
| "encoding/json" | |
| "fmt" | |
| "image" | |
| "image/color" | |
| "image/draw" | |
| "image/png" | |
| "io/ioutil" |
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
| setInterval(function() { | |
| var time = ((countdownTimestamp * 1000) - new Date()) / 1000, | |
| h = Math.floor(time / 60), | |
| s = Math.floor(time % 60), | |
| title = h + ":" + s; | |
| document.getElementsByTagName("title")[0].textContent = title; | |
| }, 1000); |
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
| // ==UserScript== | |
| // @name New ING Login Helper | |
| // @description Creates a password input field for password managers | |
| // @author Slawek Kolodziej | |
| // @namespace slawekkolodziej | |
| // @include https://login.ingbank.pl/mojeing/app/* | |
| // @run-at document-end | |
| // @version 1.2.0 | |
| // @grant none | |
| // ==/UserScript== |
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
| #!/bin/bash -xe | |
| S3_BUCKET=foo | |
| EXPECTED_SERVERS=2 | |
| yum install -y aws-cli | |
| aws s3 cp s3://$S3_BUCKET/ecs.config /etc/ecs/ecs.config | |
| aws s3 cp s3://$S3_BUCKET/docker.config /etc/sysconfig/docker | |
| run_consul_agent() { | |
| peers="" |
OlderNewer