- 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
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* ========================================================================== | |
Section comment block | |
========================================================================== */ | |
/* Sub-section comment block | |
========================================================================== */ | |
/** | |
* Short description using Doxygen-style comment format | |
* |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
1. replace @ with $ | |
Find: @ | |
Replace: $ | |
2. replace mixins | |
Find: \.([\w\-]*)\s*\((.*)\)\s*\{ | |
Replace: @mixin \1\(\2\)\n{ | |
3. replace includes | |
Find: \.([\w\-]*\(.*\)\s*;) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
## Configure eth0 | |
# | |
# vi or nano /etc/sysconfig/network-scripts/ifcfg-eth0 | |
DEVICE="eth0" | |
NM_CONTROLLED="yes" | |
ONBOOT=yes | |
# Retrieve the current MAC address with: ifconfig | |
HWADDR=A4:BA:DB:37:F1:04 | |
TYPE=Ethernet |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* Encapsulated JS Scripts | |
*/ | |
(function (window, angular, Hammer) { | |
'use strict'; | |
function exampleFunction (element) { | |
return 'something'; | |
} |
#GIT Common troubleshooting
##How to cancel a local git commit
Just use git reset
without the --hard
flag:
git reset HEAD~1
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
// routing.php | |
if (preg_match('/\.(?:png|jpg|jpeg|gif|svg|html)$/', $_SERVER["REQUEST_URI"])) { | |
$isNotInPublicFoler = preg_match('/^((?!app|css).)*$/s', $_SERVER["REQUEST_URI"]); | |
if ($isNotInPublicFoler) { | |
$file_requested = $_SERVER["DOCUMENT_ROOT"] . $_SERVER["REQUEST_URI"]; | |
} else { | |
$file_requested = str_replace('/public', '', $_SERVER["DOCUMENT_ROOT"]) . $_SERVER["REQUEST_URI"]; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
server { | |
listen 8000; | |
server_name localhost; | |
root /Users/dmoore/projects/tutorials/angular-phonecat2/.build; | |
access_log "/Users/dmoore/projects/tutorials/angular-phonecat2/logs/hotili-net.access.log"; | |
error_log "/Users/dmoore/projects/tutorials/angular-phonecat2/logs/hotili-net.error.log"; | |
error_page 404 /app/404.html; | |
error_page 403 /app/403.html; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Verifying my Blockstack ID is secured with the address 1Cppqfu9zB9gnK7HPU9kNobvH9pc5T5zLX https://explorer.blockstack.org/address/1Cppqfu9zB9gnK7HPU9kNobvH9pc5T5zLX |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# This is a sample build configuration for Other. | |
# Check our guides at https://confluence.atlassian.com/x/5Q4SMw for more examples. | |
# Only use spaces to indent your .yml configuration. | |
# ----- | |
# You can specify a custom docker image from Docker Hub as your build environment. | |
image: | |
name: pxdeployment/pipelines | |
username: $DOCKERHUB_USER_ALT | |
password: $DOCKERHUB_PASS_ALT | |
email: [email protected] |