CoffeeScript 1.7 is shaping up to be a pretty kick-ass release with significant improvements. Here are the ones I'm most excited about, in order of my own excitement.
Years of being wished for, finally granted!
| var fs = require('fs'); | |
| require('shelljs/global'); | |
| const EXAMPLES_DIR = './node_modules/three/examples/js' | |
| const DEST_DIR = './src/js/lib/three/examples' | |
| mkdir('-p', DEST_DIR); | |
| const files = [ | |
| `${EXAMPLES_DIR}/loaders/GLTFLoader.js`, |
| #!/usr/bin/env python2.7 | |
| # encoding=utf8 | |
| # | |
| # Copyright 2007 Google Inc. | |
| # Copyright 2016 Raphaël Doursenaud | |
| # | |
| # Licensed under the Apache License, Version 2.0 (the "License"); | |
| # you may not use this file except in compliance with the License. | |
| # You may obtain a copy of the License at | |
| # |
| /** | |
| * Hide the main editor on specific pages | |
| */ | |
| define('EDITOR_HIDE_PAGE_TITLES', json_encode(array())); | |
| define('EDITOR_HIDE_PAGE_TEMPLATES', json_encode(array('template-cars.php'))); | |
| /** | |
| * Hide the main editor on defined pages | |
| * |
| // takes a {} object and returns a FormData object | |
| var objectToFormData = function(obj, form, namespace) { | |
| var fd = form || new FormData(); | |
| var formKey; | |
| for(var property in obj) { | |
| if(obj.hasOwnProperty(property)) { | |
| if(namespace) { |
| #!/bin/bash | |
| PHANTOM_JS="phantomjs-1.9.8-linux-x86_64" | |
| if [[ $EUID -ne 0 ]]; then | |
| echo "You must be a root user" 2>&1 | |
| exit 1 | |
| else | |
| apt-get update | |
| apt-get install -y build-essential chrpath libssl-dev libxft-dev | |
| apt-get install -y libfreetype6 libfreetype6-dev | |
| apt-get install -y libfontconfig1 libfontconfig1-dev |
| #!/bin/bash | |
| # Author: Erik Kristensen | |
| # Email: [email protected] | |
| # License: MIT | |
| # Nagios Usage: check_nrpe!check_docker_container!_container_id_ | |
| # Usage: ./check_docker_container.sh _container_id_ | |
| # | |
| # Depending on your docker configuration, root might be required. If your nrpe user has rights | |
| # to talk to the docker daemon, then root is not required. This is why root privileges are not |
CoffeeScript 1.7 is shaping up to be a pretty kick-ass release with significant improvements. Here are the ones I'm most excited about, in order of my own excitement.
Years of being wished for, finally granted!
| // Check if a slave has < 10 GB of free space, wipe out workspaces if it does | |
| import hudson.model.*; | |
| import hudson.util.*; | |
| import jenkins.model.*; | |
| import hudson.FilePath.FileCallable; | |
| import hudson.slaves.OfflineCause; | |
| import hudson.node_monitors.*; | |
| for (node in Jenkins.instance.nodes) { |
| require 'cancan/model_adapters/active_record_adapter' | |
| class CanCan::ModelAdapters::ActiveRecordAdapter | |
| # From CanCan | |
| def database_records | |
| if override_scope | |
| @model_class.scoped.merge(override_scope) | |
| elsif @model_class.respond_to?(:where) && @model_class.respond_to?(:joins) | |
| mergeable_conditions = @rules.select {|rule| rule.unmergeable? }.blank? | |
| if mergeable_conditions |