This file contains 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
package com.kiubo.bta_tabs; | |
import android.os.Bundle; | |
import android.app.Fragment; | |
import android.view.LayoutInflater; | |
import android.view.View; | |
import android.view.ViewGroup; | |
/** | |
* Created by Abel ORian Alfaro on 10-09-2014. |
This file contains 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
View rootView; | |
@Override | |
public View onCreateView(LayoutInflater inflater, ViewGroup container, | |
Bundle savedInstanceState) { | |
rootView = (View) inflater.inflate(R.layout.fragment, container, false); | |
Button mButton = (Button) rootView.findViewById(R.id.button); | |
mButton.setOnClickListener(new OnClickListener() { |
This file contains 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
public function token() { | |
$token = md5(uniqid(rand(), true)); | |
$this->session->set_userdata('token', $token); | |
return $token; | |
} |
This file contains 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
public function enviar_correo_codeigniter($email, $asunto, $contenido){ | |
// Email configuration | |
$config = Array( | |
'protocol' => 'smtp', | |
'smtp_host' => 'smtp.tuhost.cl', | |
'smtp_port' => 465, | |
'smtp_user' => 'TUCORREO', // change it to yours | |
'smtp_pass' => 'TUPASS', // change it to yours | |
'mailtype' => 'html', |
This file contains 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
// Specify that we will be displaying tabs in the action bar. | |
actionBar.setNavigationMode(ActionBar.NAVIGATION_MODE_TABS); | |
actionBar.setDisplayShowHomeEnabled(false); | |
actionBar.setDisplayShowTitleEnabled(false); |
This file contains 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
// @return [float] a random number between min and max | |
function getRandom(min, max) { | |
return Math.random() * (max - min) + min; | |
} | |
// @return [integer] a random int between min and max | |
function getRandomInt(min, max) { | |
return Math.floor(Math.random() * (max - min + 1) + min); | |
} |
This file contains 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
<!DOCTYPE html> | |
<html ng-app='feedModule'> | |
<head> | |
<script type="text/javascript" src="https://www.google.com/jsapi"></script> | |
<script src="https://ajax.googleapis.com/ajax/libs/angularjs/1.0.7/angular.min.js"></script> | |
<script src="https://ajax.googleapis.com/ajax/libs/angularjs/1.0.7/angular-resource.min.js"></script> | |
</head> | |
<body ng-controller='FeedCtrl'> | |
This file contains 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 feeds = []; | |
angular.module('feedModule', ['ngResource']) | |
.factory('FeedLoader', function ($resource) { | |
return $resource('http://ajax.googleapis.com/ajax/services/feed/load', {}, { | |
fetch: { method: 'JSONP', params: {v: '1.0', callback: 'JSON_CALLBACK'} } | |
}); | |
}) | |
.service('FeedList', function ($rootScope, FeedLoader) { | |
this.get = function() { |
This file contains 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
.video-container { | |
position: relative; | |
padding-bottom: 56.25%; | |
padding-top: 30px; height: 0; overflow: hidden; | |
} | |
.video-container iframe, | |
.video-container object, | |
.video-container embed { | |
position: absolute; |
OlderNewer