Skip to content

Instantly share code, notes, and snippets.

View csantanapr's full-sized avatar
🏠
Working from home

Carlos Santana csantanapr

🏠
Working from home
View GitHub Profile
var dojoConfig = {
asyc: true,
baseUrl: 'path/to/src',
tlmSiblingOfDojo: false,
packages: [
'dojo',
'dijit',
'dojox',
{ name: 'doh', location: 'util/doh' }
]
#!/bin/bash
while :
do
clear
git --no-pager log --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%ci) %C(bold blue)<%an>%Creset' --abbrev-commit --date=relative --all
sleep 1
done
@csantanapr
csantanapr / .git-completion.bash
Last active December 19, 2015 01:59
Add to ~/.profile source ~/.git-completion.bash
#!bash
#
# bash/zsh completion support for core Git.
#
# Copyright (C) 2006,2007 Shawn O. Pearce <[email protected]>
# Conceptually based on gitcompletion (http://gitweb.hawaga.org.uk/).
# Distributed under the GNU General Public License, version 2.0.
#
# The contained completion routines provide support for completing:
#
define(["dojo/_base/lang", "dojo/_base/declare", "dojox/app/Controller"],
function(lang, declare, Controller){
// module:
// dojox/app/tests/mediaQuery3ColumnApp/controllers/LogAllAppEvents
// summary:
// This Custom controller created to log all dojox/app events to see when these events are fired.
return declare("dojox/app/tests/mediaQuery3ColumnApp/controllers/LogAllAppEvents", Controller, {
constructor: function(){

Chrome on OSX

  • sans-serif 100 = Helvetica Light
  • sans-serif 200 = Helvetica Light
  • sans-serif 300 = Helvetica Light
  • sans-serif 400 = Helvetica Regular
  • sans-serif 500 = Helvetica Regular
  • sans-serif 600 = Helvetica Bold
  • sans-serif 700 = Helvetica Bold
@csantanapr
csantanapr / run_ionic_app_on_all_connected_android_devices.sh
Last active April 24, 2018 08:42 — forked from boyney123/run_ionic_app_on_all_connected_android_devices.sh
Simple bash script to remove, build, install and launch your ionic app on all connected android devices (android simulators or actual devices).
#!/bin/sh
#Your app id which can be found in your config.xml file (widget id)
app=com.ionicframework.myNewApp
pathToAPK=platforms/android/build/outputs/apk/android-debug.apk
echo "Running Ionic Build"
ionic build
@csantanapr
csantanapr / cordova-tips.md
Last active August 29, 2015 14:27 — forked from revolunet/cordova-tips.md
Cordova iOS tips

General

  • create a single page javascript application
  • be as low-level as possible to be able to control performance (=minimize layers)
  • masterize your dev/build environnement so you can work/play nicely

Debug apps

@csantanapr
csantanapr / Makefile
Created March 4, 2018 06:44 — forked from hallettj/Makefile
Makefile for transpiling with Babel & Flow in a Node app, or in a client- or server-side shared library
# Makefile for transpiling with Babel in a Node app, or in a client- or
# server-side shared library.
.PHONY: all clean
# Install `babel-cli` in a project to get the transpiler.
babel := node_modules/.bin/babel
# Identify modules to be transpiled by recursively searching the `src/`
# directory.
@csantanapr
csantanapr / podman-generate-systemd.sh
Created April 28, 2020 20:59 — forked from sallyom/podman-generate-systemd.sh
this script will start a podman container and create a systemd service from it, then show systemctl start/stop the.service starts/stops the container
#!/bin/sh
# Setting up some colors for helping read the demo output.
# Comment out any of the below to turn off that color.
bold=$(tput bold)
bright=$(tput setaf 14)
yellow=$(tput setaf 11)
red=$(tput setaf 196)
reset=$(tput sgr0)
@csantanapr
csantanapr / ckad-bookmarks.html
Created May 31, 2020 04:09 — forked from runlevl4/ckad-bookmarks.html
CKAD Bookmarks (** indicates example source) [originally sourced from https://github.com/nikhilagrawal577/ckad-notes]
<!DOCTYPE NETSCAPE-Bookmark-file-1>
<!-- This is an automatically generated file.
It will be read and overwritten.
DO NOT EDIT! -->
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=UTF-8">
<TITLE>Bookmarks</TITLE>
<H1>Bookmarks</H1>
<DL><p>
<DT><H3 ADD_DATE="1576816453" LAST_MODIFIED="1578776782">CKAD</H3>
<DL><p>