Skip to content

Instantly share code, notes, and snippets.

View identy's full-sized avatar

Sigfrido Rodríguez Santos identy

View GitHub Profile
@gabouh
gabouh / AndroidManifest.xml
Created March 25, 2016 10:50
NativeScript Splash Screen for Android
File from app/App_Resources/Android/AndroidManifest.xml
<?xml version="1.0" encoding="utf-8"?>
<manifest xmlns:android="http://schemas.android.com/apk/res/android"
package="__PACKAGE__"
android:versionCode="1"
android:versionName="1.0">
<supports-screens
android:smallScreens="true"
@aVolpe
aVolpe / Vibration.cs
Created October 16, 2014 02:45
Vibration for Unity3d with Android native Call, with fallback to Handlheld.Vibrate()
using UnityEngine;
using System.Collections;
public static class Vibration
{
#if UNITY_ANDROID && !UNITY_EDITOR
public static AndroidJavaClass unityPlayer = new AndroidJavaClass("com.unity3d.player.UnityPlayer");
public static AndroidJavaObject currentActivity = unityPlayer.GetStatic<AndroidJavaObject>("currentActivity");
public static AndroidJavaObject vibrator = currentActivity.Call<AndroidJavaObject>("getSystemService", "vibrator");
@spartDev
spartDev / gulpfile.js
Last active March 15, 2020 14:09
Gulp config
/*---------- Declare gulp variables ----------*/
var gulp = require('gulp'),
jshint = require('gulp-jshint'),
csslint = require('gulp-csslint'),
compass = require('gulp-compass'),
connect = require('gulp-connect'), path = require('path'),
livereload = require('gulp-livereload'),
clean = require('gulp-clean'),