Skip to content

Instantly share code, notes, and snippets.

View brayancruces's full-sized avatar
🎯
Focusing

Brayan Cruces brayancruces

🎯
Focusing
View GitHub Profile
@brayancruces
brayancruces / README.md
Created June 20, 2017 19:39 — forked from hilios/README.md
ngPageTitle - AngularJS page title service

$pageTitle

Allows to control the page title from the AngularJS route system, controllers or any other component through an injectable service.

ngPageTitle - Page title service (run tests)

To get started add the module to your app and configure the page title provider:

@brayancruces
brayancruces / README.rst
Created August 8, 2016 11:53 — forked from dupuy/README.rst
Common markup for Markdown and reStructuredText

Markdown and reStructuredText

GitHub supports several lightweight markup languages for documentation; the most popular ones (generally, not just at GitHub) are Markdown and reStructuredText. Markdown is sometimes considered easier to use, and is often preferred when the purpose is simply to generate HTML. On the other hand, reStructuredText is more extensible and powerful, with native support (not just embedded HTML) for tables, as well as things like automatic generation of tables of contents.

@brayancruces
brayancruces / 01_Laravel 5 Simple ACL manager_Readme.md
Created June 9, 2016 00:35 — forked from amochohan/01_Laravel 5 Simple ACL manager_Readme.md
Laravel 5 Simple ACL - Protect routes by an account / role type

#Laravel 5 Simple ACL manager

Protect your routes with user roles. Simply add a 'role_id' to the User model, install the roles table and seed if you need some example roles to get going.

If the user has a 'Root' role, then they can perform any actions.

Installation

Simply copy the files across into the appropriate directories, and register the middleware in App\Http\Kernel.php

WebSql demo app

Simple demo test . You cand add remove and edit desciprtion. Note: to see update description you need refresh window

A Pen by Moncho Varela on CodePen.

License.

<!DOCTYPE html>
<html>
<head>
<script>
var start=new Date();
start=Date.parse(start)/1000;
var counts=10;
function CountDown()
{
/** Objeto console. Ver descripción detallada en
https://developer.mozilla.org/en-US/docs/Web/API/console */
/* Escribe un mensaje en la consola JS del navegador */
console.log('Hola consola');
/* Escribe un mensaje de información en la consola JS del navegador */
console.info('Te informo la fecha de hoy: %s', new Date());
/* Escribe un mensaje de alerta en la consola JS del navegador */
console.warn('Te advierto consola');
@brayancruces
brayancruces / javascript_resources.md
Created June 25, 2014 18:01 — forked from jookyboi/javascript_resources.md
Here are a set of libraries, plugins and guides which may be useful to your Javascript coding.

Libraries

  • jQuery - The de-facto library for the modern age. It makes things like HTML document traversal and manipulation, event handling, animation, and Ajax much simpler with an easy-to-use API that works across a multitude of browsers.
  • Backbone - Backbone.js gives structure to web applications by providing models with key-value binding and custom events, collections with a rich API of enumerable functions, views with declarative event handling, and connects it all to your existing API over a RESTful JSON interface.
  • AngularJS - Conventions based MVC framework for HTML5 apps.
  • Underscore - Underscore is a utility-belt library for JavaScript that provides a lot of the functional programming support that you would expect in Prototype.js (or Ruby), but without extending any of the built-in JavaScript objects.
  • lawnchair - Key/value store adapter for indexdb, localStorage
@brayancruces
brayancruces / css_resources.md
Created June 25, 2014 18:01 — forked from jookyboi/css_resources.md
CSS libraries and guides to bring some order to the chaos.

Libraries

  • 960 Grid System - An effort to streamline web development workflow by providing commonly used dimensions, based on a width of 960 pixels. There are two variants: 12 and 16 columns, which can be used separately or in tandem.
  • Compass - Open source CSS Authoring Framework.
  • Bootstrap - Sleek, intuitive, and powerful mobile first front-end framework for faster and easier web development.
  • Font Awesome - The iconic font designed for Bootstrap.
  • Zurb Foundation - Framework for writing responsive web sites.
  • SASS - CSS extension language which allows variables, mixins and rules nesting.
  • Skeleton - Boilerplate for responsive, mobile-friendly development.

Guides

@brayancruces
brayancruces / 0_reuse_code.js
Created June 25, 2014 18:01
Here are some things you can do with Gists in GistBox.
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console