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 python | |
| # Adapted from Mark Mandel's implementation | |
| # https://github.com/ansible/ansible/blob/devel/plugins/inventory/vagrant.py | |
| import argparse | |
| import json | |
| import paramiko | |
| import subprocess | |
| import sys | |
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
| Vagrant::Config.run do |config| | |
| config.vm.box = "centos-63-x64" | |
| config.vm.share_folder "PuppetFiles", "/etc/puppet/files", "./files" | |
| config.vm.define :redis_server do |redis_server| | |
| redis_server.vm.network :hostonly, "192.168.0.10" | |
| redis_server.vm.provision :puppet do |puppet| | |
| puppet.manifest_file = "redis_server_manifest.pp" | |
| puppet.options = ["--fileserverconfig=/vagrant/fileserver.conf"] |
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 AttachmentCtrl($scope, $location, $timeout, Docs) { | |
| $(function() { | |
| $('#detail-form-doc').fileupload({ | |
| dataType: 'json', | |
| url: '/angular-ib/app/fileupload?id=' + $location.search().id, | |
| add: function(e, data) { | |
| $scope.$apply(function(scope) { | |
| // Turn the FileList object into an Array | |
| for (var i = 0; i < data.files.length; i++) { | |
| $scope.project.files.push(data.files[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
| // add the filter to your application module | |
| angular.module('yourAppName', ['filters']); | |
| /** | |
| * Truncate Filter | |
| * @Param string | |
| * @Param int, default = 10 | |
| * @Param string, default = "..." | |
| * @return string | |
| */ |
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
Show hidden characters
| { | |
| "cmd": ["groovy", "$file"], | |
| "selector": "source.groovy", | |
| "file_regex": "[ ]*at .+[(](.+):([0-9]+)[)]", | |
| "windows": { | |
| "shell": "cmd.exe" | |
| } | |
| } |
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
| public class ContextRunner extends Runner { | |
| static class SpecificationMethod { | |
| Class<?> TestContainerType; | |
| Description TestContainerDescription; | |
| ContextSpecification ContextSpecification; | |
| Description ContextSpecificationDescription; | |
| Field ContextSpecificationField; | |
| Method SpecificationMethod; | |
| Description SpecificationDescription; | |
| } |