Command Line
pry -r ./config/app_init_file.rb
- load your app into a pry session (look at the file loaded by config.ru)pry -r ./config/environment.rb
- load your rails into a pry session
Debugger
Command Line
pry -r ./config/app_init_file.rb
- load your app into a pry session (look at the file loaded by config.ru)pry -r ./config/environment.rb
- load your rails into a pry sessionDebugger
<?php | |
xhprof_enable(XHPROF_FLAGS_CPU + XHPROF_FLAGS_MEMORY); | |
register_shutdown_function(function () { | |
$namespace = 'sitename'; | |
$filename = '/tmp/' . uniqid() . '.' . $namespace . '.xhprof'; | |
file_put_contents($filename, serialize(xhprof_disable())); | |
}); |
/** | |
* Prepares variables for HTML document templates. | |
* | |
* Default template: html.html.twig. | |
* | |
* @param array $variables | |
* An associative array containing: | |
* - page: A render element representing the page. | |
* | |
* @see system_elements() |
Drupal 8 Stats as of May 24th, 2013 | |
`title_attributes` used in 12 templates or theme functions. | |
`content_attributes` used in 9 templates or theme functions and assumed existance in rdf. | |
`attributes` used in 35 templates or theme functions. | |
## Title Attributes | |
``` | |
core/modules/block/templates/block.html.twig: |
#!/bin/bash | |
# Daisydiff script based on https://gist.github.com/c4rl/5385704 for unix users | |
# Required folder structure: | |
# - this script | |
# - daisydiff folder | |
# - tmp folder | |
# CONFIGURATION | |
USERNAME=youruser |
# Creates a baseline from your current branch (should usually be 8.x). | |
alias bbranch='./xhprof-kit/benchmark-branch.sh `git rev-parse --abbrev-ref HEAD`' | |
# Using the baseline xhprof identifier from the bbranch command above will benchmark 8.x against the baseline and your patched branch. | |
# e.g. | |
# bbranches [XHPROF-IDENTIFIER] [twig-branch-name-here-1234456] | |
function bbranches() { | |
originalbranch="$(git rev-parse --abbrev-ref HEAD)" | |
base=$1 | |
shift |
I want to write software that helps kill people.
Please, before you call the police and get my github account put on lockdown, allow me a moment to explain. What I really want to do is work on projects that advance the human condition and improve people's lives. I've been in a mad dash to learn how to program for the past four or five years exactly because I realized how much good I could do for the world with a computer.
<?php | |
/** | |
* A helper file for Laravel 5, to provide autocomplete information to your IDE | |
* Generated for Laravel 5.5.13 on 2017-09-28. | |
* | |
* @author Barry vd. Heuvel <barryvdh@gmail.com> | |
* @see https://github.com/barryvdh/laravel-ide-helper | |
*/ | |
namespace { | |
exit("This file should not be included, only analyzed by your IDE"); |
Loris is an Implementation of the IIIF (International Image Interoperability Framework) Image API specification. Loris is designed to work w/ JPEG2000 files, but this is not part of the spec.
IIIF defines a Syntax for accessing images:
/identifier/region/size/rotation/quality(.format)?
.projects_stories_page .storyLabels a[title="blocked"] { | |
background-color: red; | |
color: white !important; | |
padding: 0 3px; | |
display: inline-block; | |
} |