| name | explain-diff-html |
|---|---|
| description | Use when the user asks for a rich explanation of a code change, diff, branch, or PR. Produces HTML output. |
Please make me a rich, interactive explanation of the specified code change.
It should have these sections:
| -- Tit Petric, Monotek d.o.o., Tue 03 Jan 2017 06:54:56 PM CET | |
| -- | |
| -- Delete nginx cached assets with a PURGE request against an endpoint | |
| -- supports extended regular expression PURGE requests (/upload/.*) | |
| -- | |
| function file_exists(name) | |
| local f = io.open(name, "r") | |
| if f~=nil then io.close(f) return true else return false end | |
| end |
| public class AgregarItemActivity extends AppCompatActivity { | |
| Usuario user; | |
| boolean listenerStatus; | |
| String sessionID; | |
| String eventoID; | |
| String agregarItemURL; | |
| String agregarImagenesURL; | |
| String item; |
How to write it : http://betterspecs.org/
rpsec helper methods : https://www.relishapp.com/rspec/rspec-core/docs/helper-methods/define-helper-methods-in-a-module
A screen cast Rspec/Capybara : http://railscasts.com/episodes/275-how-i-test
Capybara stuff : https://github.com/jnicklas/capybara
| module BaseEntity | |
| extend ActiveSupport::Concern | |
| include ActiveModel::Model | |
| include ActiveModel::Dirty | |
| include ActiveModel::Serializers::JSON | |
| include ActiveModel::Serializers::Xml | |
| included do | |
| include ::Virtus.model |
| /* | |
| gulpfile from one of my React applications which has a gulp --production build | |
| set up. | |
| Assumptions: | |
| 1. All your own .js/.jsx modules are somewhere under ./src, have unique | |
| filenames and use Node.js-style requires WITHOUT any path information, just | |
| the name of another module somewhere under ./src |
| /// | |
| var pkg = require("./package.json") | |
| , rimraf = require("rimraf") | |
| , gulp = require("gulp") | |
| , gutil = require("gulp-util") | |
| , filter = require("gulp-filter") | |
| , plumber = require("gulp-plumber") | |
| , concat = require("gulp-concat") | |
| gulp.task("clean", function() { |
| # | |
| # CORS header support | |
| # | |
| # One way to use this is by placing it into a file called "cors_support" | |
| # under your Nginx configuration directory and placing the following | |
| # statement inside your **location** block(s): | |
| # | |
| # include cors_support; | |
| # | |
| # As of Nginx 1.7.5, add_header supports an "always" parameter which |
| user www-data; | |
| worker_processes 4; | |
| error_log /var/log/nginx/error.log; | |
| pid /var/run/nginx.pid; | |
| events { | |
| worker_connections 1024; | |
| } |
| #!/usr/bin/ruby | |
| require 'rubygems' | |
| require 'aws-sdk' | |
| require 'erb' | |
| aws_email="email address here" | |
| aws_name="My Test Instance" | |
| # below is IAM credentials for my account |