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
class Admin::DataTable::CellComponent < ApplicationComponent | |
def initialize(tag: :td, header: false, collapse: false, padding: true, numeric: false, centered: true, **args) | |
@args = args | |
@args[:tag] = tag | |
@args[:class] = class_names( | |
@args[:class], | |
"text-end" => numeric, | |
"w-1" => collapse, | |
"text-center" => centered, |
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
{ | |
"keywords": ["symfony", "symfony2", "sylius", "distribution", "ecommerce", "cart", "shopping"], | |
"type": "project", | |
"license": "proprietary", | |
"homepage": "http://sylius.org", | |
"authors": [ | |
{ | |
"name": "Paweł Jędrzejewski" | |
}, | |
{ |
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
#!/bin/bash | |
# | |
# Ansible role test shim. | |
# | |
# Usage: [OPTIONS] ./tests/test.sh | |
# - distro: a supported Docker distro version (default = "centos7") | |
# - playbook: a playbook in the tests directory (default = "test.yml") | |
# - cleanup: whether to remove the Docker container (default = true) | |
# - container_id: the --name to set for the container (default = timestamp) | |
# - test_idempotence: whether to test playbook's idempotence (default = true) |
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
# Use rbconfig to determine if we're on a windows host or not. | |
require 'rbconfig' | |
is_windows = (RbConfig::CONFIG['host_os'] =~ /mswin|mingw|cygwin/) | |
if is_windows | |
# Provisioning configuration for shell script. | |
config.vm.provision "shell" do |sh| | |
sh.path = "windows.sh" | |
sh.args = "build.yml" | |
end | |
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
<?php | |
// Clients using Docker DB | |
CFG::set('ETCD_ENABLED_APPS', [ | |
'Sigma', | |
'Saltrock', | |
'GeminiWoman', | |
'Kennelpak', | |
'Nest', | |
'Woodall', | |
]); |
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
// Feature detection | |
var supports = !!document.querySelector && !!window.addEventListener; | |
if ( !supports ) return; | |
// Enabling / hiding content on document load | |
document.documentElement.className += ' js-component-name'; | |
// Shallow extend | |
// If a key has another object as its value, the first object's value will be overridden by the second one during the merge. | |
var extend = function ( objects ) { |
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
/** | |
* Custom chart | |
*/ | |
Chart.types.Doughnut.extend({ | |
name: "PtgDoughnut", | |
// Check if we need to extend the scale | |
initialize: function(data){ | |
this.options.onAnimationProgress = function(easeDecimal){ | |
this.drawPercentage((easeDecimal * this.segments[0].value).toFixed(1)); |
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
Install Cygwin | |
Install: | |
- make | |
- gcc | |
- libcrypt-devel | |
$ perl -MCPAN -e shell | |
cpan[1]> install YAML | |
cpan[2]> install Term::ReadKey |
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
# for files only | |
find ./ -type f -exec chmod 644 {} + | |
# for directories only | |
find ./ -type d -exec chmod 755 {} + |
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
#!/bin/bash | |
# ============================================================================== | |
# Set up LAMP stack on blank Linode | |
# | |
# $ nano install.sh | |
# Copy/paste this script into terminal. Save and exit. | |
# $ chmod 775 install.sh | |
# $ ./install.sh | |
# $ rm install.sh | |
# ============================================================================== |
NewerOlder