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
| <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" | |
| xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd"> | |
| <modelVersion>4.0.0</modelVersion> | |
| <groupId>com.mycompany.app</groupId> | |
| <artifactId>my-app</artifactId> | |
| <packaging>jar</packaging> | |
| <version>1.0-SNAPSHOT</version> | |
| <name>my-app</name> | |
| <url>http://maven.apache.org</url> | |
| <dependencies> |
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
| #include <iostream> | |
| #include <fstream> | |
| #include <exception> | |
| using namespace std; | |
| void print2dArray(int **arr,int x, int y){ | |
| for(int i=0;i<x;i++){ | |
| for(int j=0;j<y;j++){ | |
| cout << "matrix[" << i << "][" << j << "]" << " = " << arr[i][j] << endl; |
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
| function UserCtrl( | |
| $scope, | |
| $FB) { | |
| $scope.$watch(function() { | |
| return $FB.isLoaded() | |
| },function(value){ | |
| console.log("VALUE",value); | |
| // It needs authentication, this won't work. |
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
| sudo apt-get install python-setuptools | |
| #Or : sudo yum install gcc python-setuptools python-devel postgresql-devel | |
| wget https://pypi.python.org/packages/source/p/pip/pip-1.3.1.tar.gz | |
| tar -xvf pip*.gz | |
| cd pip*.gz | |
| sudo python setup.py install | |
| sudo pip install virtualenv | |
| sudo pip install virtualenvwrapper | |
| mkdir ~/.venvs | |
| export WORKON_HOME=~/.venvs |
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
| #====================================== | |
| # SH-------------------EH------------------------------ | |
| # *SH-------------------EH------------------------------ | |
| #====================================== | |
| # Comprobar si existe una actividad con ese mismo horario | |
| at_activities = UserActivity.objects.filter( | |
| user=user, | |
| # Mismo día de la semana | |
| activity__day_of_week=activity.day_of_week, |
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
| degLat = -12.04930 | |
| degLon = -77.08223 | |
| radLat = math.radians(degLat) | |
| radLon = math.radians(degLon) | |
| MIN_LAT = math.radians(-90) # -PI/2 | |
| MAX_LAT = math.radians(90) # PI/2 | |
| MIN_LON = math.radians(-180) # -PI | |
| MAX_LON = math.radians(180) # PI |
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
| import java.io.BufferedInputStream; | |
| import java.io.BufferedReader; | |
| import java.io.BufferedWriter; | |
| import java.io.FileInputStream; | |
| import java.io.FileNotFoundException; | |
| import java.io.FileOutputStream; | |
| import java.io.IOException; | |
| import java.io.InputStream; | |
| import java.io.InputStreamReader; | |
| import java.io.OutputStreamWriter; |
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
| /** | |
| * Permite agendar el job para sincronización de | |
| * usuarios en un horario determinado | |
| * | |
| */ | |
| public void configJob(){ | |
| try { | |
| // Run a job. | |
| Logger log = LoggerFactory.getLogger(Startup.class); |
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
| <.*?> --> all inside < > |
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
| package com.devniel.braph.activities; | |
| import android.app.Activity; | |
| import android.net.Uri; | |
| import android.os.Bundle; | |
| import android.view.Menu; | |
| import android.view.MenuItem; | |
| import com.devniel.braph.R; | |
| import com.devniel.braph.fragments.PhotoFragment; |