[BASH][1] script to build a [texture atlas][2] for small/medium web sites/games. Requires [ImageMagick][3].
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
var fs = require('fs'); | |
function readLines(input, func) { | |
var remaining = ''; | |
var lines = []; | |
input.on('data', function(data) { | |
remaining += data; | |
var index = remaining.indexOf('\n'); | |
while (index > -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
$(document).on("ready", function(){ | |
"use strict"; | |
var RepairPost = Backbone.Model.extend({ | |
url : "/repair/posts", | |
schema: { | |
name: { type : 'Text', validators: ['required'] } | |
} | |
}); |
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 CsvExporter { | |
constructor (collection, options) { | |
this.collection = collection; | |
this.options = { | |
format : false, | |
titles : false | |
}; | |
_.extend(this.options, options || {}); | |
} |
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 -x | |
# | |
# Manage docker with portainer api | |
set -x | |
STACK_NAME="scriptdev" | |
SERVICE_NAME="runner" | |
ENDPOINT_ID=3 | |
PORTAINER_URL="" |