Skip to content

Instantly share code, notes, and snippets.

View citlacom's full-sized avatar

Pablo Cerda citlacom

  • Torrevieja, Spain
View GitHub Profile
@mikeyp
mikeyp / mymodule.install
Created March 1, 2017 17:41
Update a Drupal 8 entity definition without uninstall/reinstalling the module.
<?php
/**
* @file
* Install, update and uninstall functions for mymodule.
*/
/**
* Update the schema for my entity.
*/
<?php
/**
* This plugin creates a new paragraph entity based on the source.
*
* @MigrateProcessPlugin(
* id = "mds_paragraph"
* )
*/
class ParagraphMigrateProcessor extends ParagraphProcessBase {
@noamross
noamross / fishlakes.csv
Created February 21, 2013 01:23
Model Selection and Multi-Model Inference
We can make this file beautiful and searchable if this error is corrected: It looks like row 3 should actually have 41 columns, instead of 39. in line 2.
"","X","Lake.ID","Name","treatment","shorline","sizehectars","elevation","UTM.zone","northing","easting","BUBO.breeding","BUBO.breeding2","PSRE.breeding.Y.N","RACA.y.n","veg.extent","X..of.transects.with.veg","bank.slope","silt.0.1.","silt.total","X10cm.area","vegetated.area","RACA.1K","lakes.1k","dist.ave","ls","raca.basin","fish.basin","lakes.basin","co.lakes.basin","ls2","woody","herbacious","unveg","total","woodyprop","herbprop","unvegprop","logveg","archerb","arcsilt"
"1",1,531,"Mill Creek",0,377.96,0.713,2008.9368,10,518882,4565085,"y",1,"n","y",0.691,0.682,0.308095216,0.6818,0.71212,111.5,261.17,3,4,0.5538,0.75,3,0,3,0,1,6082255.229,54367.17182,1399749.194,7536371.595,0.807053521,0.007213972,0.185732508,2.41692328905509,0.0850375574910141,1.00445938904933
"2",2,533,"East Boulder",1,1356.4,11.4,2034.8448,10,518069,4564441,"y",1,"y","y",2.28,0.292,0.092475736,0.376,0.3472,980.56,3092.59,5,10,0.8268,0.5,4,4,8,2,0.5,5699686.549,1302747.189,1470012.242,8472445.979,0.67273212,0.15376282,0.173505059,3.4903223