I hereby claim:
- I am abits on github.
- I am cmartel (https://keybase.io/cmartel) on keybase.
- I have a public key ASDM233y2jpl3-CmCoocJUeBqsOch6KkV6NS3csFVoZ9iAo
To claim this, I am signing this object:
| /* | |
| This is an EXAMPLE gulpfile.js | |
| You'll want to change it to match your project. | |
| Find plugins at https://npmjs.org/browse/keyword/gulpplugin | |
| */ | |
| var gulp = require('gulp'); | |
| var uglify = require('gulp-uglify'); | |
| gulp.task('scripts', function() { | |
| // Minify and copy all JavaScript (except vendor scripts) |
| 'use strict'; | |
| var gulp = require('gulp'); | |
| var gutil = require('gulp-util'); | |
| var del = require('del'); | |
| var uglify = require('gulp-uglify'); | |
| var gulpif = require('gulp-if'); | |
| var exec = require('child_process').exec; | |
| var notify = require('gulp-notify'); |
| Exercise: Nutrition Facts | |
| Create an empty webpage. | |
| Download nutrition.xml from https://gist.github.com/3000322 and place in your project folder. | |
| Use AJAX via jQuery or JS API to fetch the file into the page. | |
| Create a table. For each <food> in the XML file, create a row in the table with the food name and nutritional facts - serving size, calories, carbs. | |
| Bonus: Use the tablesorter jQuery plugin to make the table sortable by the nutritional facts. | |
| Exercise: Lady Gaga News |
| var gulp = require('gulp') | |
| var shell = require('gulp-shell') | |
| gulp.task('build-docs', shell.task('make html', {cwd: './docs'})) | |
| gulp.task('docs', ['build-docs'], function() { | |
| gulp.watch(['./docs/*.rst', './docs/*.py'], ['build-docs']) | |
| }) |
| # app/config/config.yml | |
| services: | |
| energy_label.logger: | |
| class: Symfony\Bridge\Monolog\Logger | |
| arguments: [app] | |
| calls: | |
| - [pushHandler, [@energy_label.logger_handler]] | |
| energy_label.logger_handler: | |
| class: Monolog\Handler\StreamHandler | |
| arguments: [%kernel.logs_dir%/%kernel.environment%.energy_label_error.log, 200] |
| # task for installing Python on a host via raw | |
| - name: install Python | |
| raw: env ASSUME_ALWAYS_YES=YES pkg install Python |
| config_dict = { | |
| 'group1': { | |
| 'server1': { | |
| 'apps': ('nginx', 'mysql'), | |
| 'cpus': 4 | |
| }, | |
| 'maintenance': True | |
| }, | |
| 'firewall_version': '1.2.3', | |
| 'python2.7': True |
| #! python3 | |
| import csv | |
| import datetime | |
| import json | |
| import os | |
| import pickle | |
| import sqlite3 | |
| BEGIN_OF_SPRINT = datetime.datetime(2016, 2, 21) |
| package main | |
| import ( | |
| "fmt" | |
| "net/http" | |
| "time" | |
| ) | |
| var urls = []string{ | |
| "http://pulsoconf.co/", |
I hereby claim:
To claim this, I am signing this object: