- version 3.6
Check those constraints:
$this->anything()
| <?php | |
| /** | |
| * PDO SINGLETON CLASS, ADODB ENABLED | |
| * | |
| * @author Tony Landis | |
| * @link http://www.tonylandis.com | |
| * @license Use how you like it, just please don't remove or alter this PHPDoc | |
| */ | |
| class sdb | |
| { |
| import javax.xml.transform.stream.StreamSource | |
| import javax.xml.validation.Schema | |
| import javax.xml.validation.SchemaFactory | |
| import javax.xml.validation.{Validator=>JValidator} | |
| import org.xml.sax.SAXException | |
| object Validator { | |
| def main(args: Array[String]) { | |
| require(args.size >= 2, "Params: xmlFile, xsdFile") | |
| val result = |
| #!/bin/bash | |
| RUN_SQL?="$(which psql) i3" | |
| function _info(){ | |
| echo "At migration version: $(cat .migration-version)" | |
| } | |
| function _init() { | |
| echo 0 > .migration-version |
| #! /usr/bin/env python | |
| import fileinput | |
| import argparse | |
| from operator import itemgetter | |
| parser = argparse.ArgumentParser() | |
| parser.add_argument('--target-mb', action = 'store', dest = 'target_mb', default = 61000, type = int) | |
| parser.add_argument('vmtouch_output_file', action = 'store', nargs = '+') | |
| args = parser.parse_args() |
| # -*- coding: utf-8 -*- | |
| # a functional is a function that takes a function for its input | |
| def fact(factorial): | |
| def fn(n): | |
| if n == 0: return 1 | |
| else: | |
| return n * factorial(n - 1) | |
| return fn | |
| #!/bin/sh | |
| # | |
| # Too many crusty old git branches? Run this to find likely candidates for deletion | |
| # It lists all the remote branches and sorts them by age. | |
| # | |
| # Folks at pivotal shared this with me | |
| # | |
| #$ . show-remote-branch-info.sh | |
| # 2012-05-04 09:42:29 -0700 4 minutes ago Ted & Bill \torigin/hey_Bill |
Use magit-ediff or 'e' on an unmerged item to resolve merge conflicts with ediff. Magit will set up an ediff with three buffers A, B and C. A and B are the original (conflicting) files, and C is the conflicted merge.
Use 'n'/'p' to move to the next/previous conflict, use 'a'/'b' to choose which changes (those in a A or B) should be the ones to keep in the merged file.
You can always just switch to buffer C and edit what the merged version should look like.
| <?php | |
| /** | |
| * Super-simple script to convert a existing project to use namespaces | |
| * | |
| * @author Hans-Peter Buniat <[email protected]> | |
| * @copyright 2012 Hans-Peter Buniat <[email protected]> | |
| * @license http://opensource.org/licenses/BSD-3-Clause | |
| */ | |
| class namespaceRefactor { |
| # Encoding: UTF-8 | |
| require 'spec_helper' | |
| # Specs for initializers/patches.rb | |
| describe ActiveSupport::JSON::Encoding do | |
| it "should not break high bitrate utf-8 characters" do | |
| hash = { string: "𐒑" } | |
| json = ActiveSupport::JSON.encode(hash) |