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
var app = angular.module( 'myApp', [] ).config(['$compileProvider', function($compileProvider) { | |
$compileProvider.aHrefSanitizationWhitelist(/^\s*(https?|ftp|mailto|app):/); | |
$compileProvider.imgSrcSanitizationWhitelist(/^\s*(https?|ftp|mailto|app):/); | |
} | |
]); | |
Ejemplo: | |
// Ionic Starter App | |
angular.module('starter', ['ionic', 'starter.controllers', 'starter.directive', 'starter.factory']) |
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
angular.element(document).ready(function () { | |
// Do something | |
}); |
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
cat /dev/null > ~/.bash_history && history -c && exit |
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
#!/bin/bash | |
IPT="/sbin/iptables" | |
# Server IP | |
SERVER_IP="$(ip addr show eth0 | grep 'inet ' | cut -f2 | awk '{ print $2}')" | |
# Your DNS servers you use: cat /etc/resolv.conf | |
DNS_SERVER="8.8.4.4 8.8.8.8" | |
# Allow connections to this package servers |
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
# enconding: utf-8 | |
### Se Agregando más preguntas de forma global ### | |
$preguntas = [ | |
"¿En que viaje Colón llegó a Venezuela?\nA: Primero - B: Segundo - C: Tercero - D: Cuarto", | |
"Cuanto es 1+1?\nA: 3 - B: 2", | |
"Color del Caballo Blanco del Libertador?\nA: Azul - B: Marrón - C: Blanco" | |
] |
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
# enconding: utf-8 | |
### Se Agregando más preguntas de forma global ### | |
preguntas = [ | |
"¿En que viaje Colón llegó a Venezuela?\nA: Primero - B: Segundo - C: Tercero - D: Cuarto", | |
"Cuanto es 1+1?\nA: 3 - B: 2", | |
"Color del Caballo Blanco del Libertador?\nA: Azul - B: Marrón - C: Blanco" | |
] |
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
#!/bin/bash | |
# | |
# Script para tuneo básico de Debian Minimal | |
# | |
# Modificando Repositorios | |
echo '### Repositorios CANTV ### | |
deb http://debian.cantv.net/debian/ jessie main contrib non-free \n | |
deb http://security.debian.org/ jessie/updates main contrib non-free \n |
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
boolean doubleBackToExitPressedOnce = false; | |
@Override | |
public void onBackPressed() { | |
if (doubleBackToExitPressedOnce) { | |
super.onBackPressed(); | |
return; | |
} | |
this.doubleBackToExitPressedOnce = true; |
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
<!-- Application theme(AppBarLayout and background color transparent). --> | |
<style name="Theme" parent="Theme.AppCompat.Light"> | |
<item name="android:actionBarStyle">@style/ActionBar</item> | |
<item name="actionBarStyle">@style/ActionBar</item><!-- Support library compatibility --> | |
</style> | |
<!-- Style for SupportActionBar --> | |
<style name="ActionBar" parent="@style/Widget.AppCompat.ActionBar"> | |
<item name="android:background">@drawable/actionbar_background</item> | |
<item name="android:windowActionBarOverlay">true</item> |
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
ListView listView = (ListView) findViewById(R.id.listView); | |
listView.setDivider(null); | |
listView.setDividerHeight(0); |
OlderNewer