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 | |
define($hash_token,"$%&123");//$hash_token is the key to use in crypt() | |
public function crypt_password($password){ | |
return $encripted_password = crypt($password,$hash_token); | |
} | |
public function login($user_name, $dumb_password){ |
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 ispalindrome(){ | |
var palindrome = true; | |
var text = "arra"; | |
var array = text.toUpperCase(); | |
array = array.split(" "); | |
array = array.join(""); | |
for(var i in array) | |
{ |
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
{ | |
{ | |
"origin": "SMT", | |
"destiny": "FLO", | |
"days": ["L","M","X","J","V"], | |
"timetable": | |
[ | |
{ | |
"time":"05:00", | |
"branch":"ALD" |
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
{ | |
"buses":[ | |
{ | |
"origin":"La Florida", | |
"destiny":"Delfin Gallo", | |
"time":"05:30" | |
}, | |
{ | |
"origin":"Los Ralos", | |
"destiny":"Ranchillos", |
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
public static void write (String filename,Context c,String string) throws IOException{ | |
try { | |
FileOutputStream fos = c.openFileOutput(filename, Context.MODE_PRIVATE); | |
fos.write(string.getBytes()); | |
fos.close(); | |
} catch (FileNotFoundException e) { | |
// TODO Auto-generated catch block | |
e.printStackTrace(); | |
} | |
} |
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.paad.comparison; | |
import java.io.FileOutputStream; | |
import java.io.FileWriter; | |
import android.app.Activity; | |
import android.os.Bundle; | |
public class ComparisonOfControlCreationActivity extends Activity { | |
@Override |
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 <string> | |
#include <algorithm> | |
#include <iterator> | |
#include <vector> | |
using namespace std; | |
int main(){ | |
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
DELIMITER $$ | |
-- Returns value in Km (Kilometers) | |
CREATE FUNCTION distance_points (lat1 FLOAT, lng1 FLOAT, lat2 FLOAT, lng2 FLOAT) | |
RETURNS FLOAT | |
DETERMINISTIC | |
BEGIN | |
RETURN (acos(sin(radians(lat1)) * sin(radians(lat2)) + | |
cos(radians(lat1)) * cos(radians(lat2)) * | |
cos(radians(lng1) - radians(lng2))) * 6371); | |
END$$ |
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 UIKit | |
import FBSDKCoreKit | |
@UIApplicationMain | |
class AppDelegate: UIResponder, UIApplicationDelegate { | |
var window: UIWindow? | |
func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplicationLaunchOptionsKey: Any]?) -> Bool { |
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
SELECT | |
CONCEPTO_SUELDO.idCodigoConcepto, | |
CONCEPTO_SUELDO.descripcion, | |
CONCEPTO_SUELDO.cantidad, | |
CONCEPTO_SUELDO.tipo_concepto | |
FROM | |
CONCEPTO_SUELDO | |
INNER JOIN | |
TIPO_LIQUIDACION ON TIPO_LIQUIDACION.CONCEPTO_SUELDO_idCodigoConcepto = CONCEPTO_SUELDO.idCodigoConcepto | |
INNER JOIN |
OlderNewer