Skip to content

Instantly share code, notes, and snippets.

longestkey = 1
for key in somedict:
if len(key) > longestkey:
longestkey = len(key)
$.fn.serialze = function() {
return jQuery.param( this.serializeArray() ).replace(/\+/g, " ");
}
#!/bin/sh
#
# cfengine3
#
#
# Created by Nakarin Phooripoom on 22/6/2011.
# Copyright 2010 CFEngine AS. All rights reserved.
#
### BEGIN INIT INFO
# Provides: cfengine3
<?php
echo "################################# NOTICE ##################################\n";
echo "# This script will clone and setup > 20 sites and make take over an hour. #\n";
echo "# If a site already exists any local changes will be overwritten. #\n";
echo "###########################################################################\n";
echo "Are you sure you want to continue? (yes/no) : ";
$stdin = fopen ( "php://stdin","r" );
$line = fgets( $stdin );
{
"attrs": {
"see": "https://example.com",
},
"attrs2": {
"see":
[
"https://example.com",
"https://example.com/two",
],
; generated by Slic3r 1.1.6 on 2014-07-09 at 18:45:35
; perimeters extrusion width = 0.35mm
; infill extrusion width = 0.37mm
; solid infill extrusion width = 0.37mm
; top infill extrusion width = 0.37mm
G21 ; set units to millimeters
M107
M104 S205 ; set temperature
config[:vms].each do |name, settings|
config.vm.define(name) do |vm_config|
# I need access to `name` here
end
end

Update master

First, make sure master is up to date.

git checkout master
git pull upstream master

Rebase your branch

/* Arduino SdFat Library
* Copyright (C) 2009 by William Greiman
*
* This file is part of the Arduino SdFat Library
*
* This Library is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*