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
#!/bin/bash | |
# Thanks to https://gist.github.com/wenzhixin/43cf3ce909c24948c6e7 | |
# Execute this script in your home directory. Lines 17 and 21 will prompt you for a y/n | |
# Install Oracle JDK 8 | |
add-apt-repository ppa:webupd8team/java | |
apt-get update | |
apt-get install -y oracle-java8-installer | |
apt-get install -y unzip make # NDK stuff |
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
{ | |
"aar": | |
{ | |
"int":["Afar"], | |
"native":["Afaraf"] | |
}, | |
"aa": | |
{ | |
"int":["Afar"], | |
"native":["Afaraf"] |
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
.center-vertical{ | |
display: flex; | |
align-items: center; | |
justify-content: center; | |
} | |
.fullscreen{ | |
width:100%; | |
min-height:100vh; | |
} |
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
<?php | |
if (isset($_POST['nombre']) && isset($_POST['correo']) && isset($_POST['asunto']) && isset($_POST['empresa']) && isset($_POST['mensaje'])) { | |
// Varios destinatarios | |
$correo= $_POST['correo']; | |
$nombre = html_entity_decode($_POST['nombre']); | |
$asunto = html_entity_decode($_POST['asunto']); | |
$mensajepost = html_entity_decode($_POST['mensaje']); | |
$empresa = html_entity_decode($_POST['empresa']); | |
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
#!/bin/bash | |
# AUTHOR: (c) Rob W 2012, modified by MHC (http://askubuntu.com/users/81372/mhc) | |
# NAME: GIFRecord 0.1 | |
# DESCRIPTION: A script to record GIF screencasts. | |
# LICENSE: GNU GPL v3 (http://www.gnu.org/licenses/gpl.html) | |
# DEPENDENCIES: byzanz,gdialog,notify-send (install via sudo add-apt-repository ppa:fossfreedom/byzanz; sudo apt-get update && sudo apt-get install byzanz gdialog notify-osd) | |
# Time and date | |
TIME=$(date +"%Y-%m-%d_%H%M%S") |
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
app.factory('socket', function ($rootScope) { | |
var socket = io.connect(); | |
return { | |
on: function (eventName, callback) { | |
socket.on(eventName, function () { | |
var args = arguments; | |
$rootScope.$apply(function () { | |
callback.apply(socket, args); | |
}); | |
}); |
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
.config(['$httpProvider', function ($httpProvider) { | |
// Intercept POST requests, convert to standard form encoding | |
$httpProvider.defaults.headers.post["Content-Type"] = "application/x-www-form-urlencoded"; | |
$httpProvider.defaults.transformRequest.unshift(function (data, headersGetter) { | |
var key, result = []; | |
if (typeof data === "string") | |
return data; | |
for (key in data) { |
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
private void notifyStatusBar(String title, String text){ | |
NotificationManager notificationManager = (NotificationManager) | |
getSystemService(NOTIFICATION_SERVICE); | |
Intent intent = new Intent(this, MainActivity.class); | |
PendingIntent pIntent = PendingIntent.getActivity(this, (int) System.currentTimeMillis(), intent, 0); | |
Notification n = new NotificationCompat.Builder(this) |
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
using UnityEngine; | |
public class PinchZoom : MonoBehaviour | |
{ | |
public float perspectiveZoomSpeed = 0.5f; // The rate of change of the field of view in perspective mode. | |
public float orthoZoomSpeed = 0.5f; // The rate of change of the orthographic size in orthographic mode. | |
void Update() | |
{ |
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
using UnityEngine; | |
using System.Collections; | |
public class LoadScene : MonoBehaviour { | |
public GameObject loadingImage; | |
public void LoadScene(int level) | |
{ | |
loadingImage.SetActive(true); |
NewerOlder