mkdir -p /Users/Shared/Desktop/homer/marge/bart/lisa/maggie/snowball2 #or, in a .bash_profile alias mkdir="mkdir -p "
Tag Archive for create
Create a directory recursively
Category: Uncategorized |
Tags: basic, commandline, commands, create, easy, FileSystem, mkdir, name, path, recurse, scripting, subdirectories, tools
create new files
# whatever arguments are given at the command line are # taken to be the names for new text files, # which are then created: open OUT, ">$ARGV[0]" or die $!; seek OUT,0,0 and print OUT " "; close OUT;
Rake Migrate Migrations Create Table Example
class AddEntriesTable < ActiveRecord::Migration def self.up create_table :entries do |table| table.column :title, :string table.column :content, :text table.column :created_at, :datetime end end def self.down drop_table :entries end end
php create function
class Obj
{
public $test;
function cf()
{
$this->test = create_function( '', 'echo "Testing";' );
}
}
$o = new Obj;
$o->cf();
$o->{$test};
Create JGraph Cell
DefaultGraphCell cell = new DefaultGraphCell(name); GraphConstants.setBorderColor(cell.getAttributes(), Color.black); GraphConstants.setBounds(cell.getAttributes(), new Rectangle2D.Double(posx, posy, 100, 20)); DefaultPort port = new DefaultPort(); cell.add(port); graph.getGraphLayoutCache().insert(cell);