View custom-shape-layout-android.xml
<?xml version="1.0" encoding="utf-8"?> | |
<android.support.constraint.ConstraintLayout | |
xmlns:android="http://schemas.android.com/apk/res/android" | |
xmlns:app="http://schemas.android.com/apk/res-auto" | |
xmlns:tools="http://schemas.android.com/tools" | |
android:layout_width="match_parent" | |
android:layout_height="match_parent"> | |
<View | |
android:id="@+id/ovalView" |
View android_progress_dialog_material.java
// in gradle - use compile in old one | |
implementation 'com.afollestad.material-dialogs:core:0.9.6.0' | |
// Field variable | |
MaterialDialog progressDialog; | |
progressDialog = new MaterialDialog.Builder(context) | |
.title("Loading something") | |
.content("") | |
.progress(true, 0) // true for indeterminate |
View iframe_to_image_conversion_javascript_js_html5.html
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta charset="utf-8" /> | |
<meta http-equiv="X-UA-Compatible" content="IE=edge"> | |
<title>Canvas to Image Test</title> | |
<meta name="viewport" content="width=device-width, initial-scale=1"> | |
<link rel="stylesheet" type="text/css" media="screen" href="main.css" /> | |
<script src="html2canvas.js"></script> |
View space_invaders_raylibgame.c
/******************************************************************************************* | |
* | |
* raylib - sample game: space invaders | |
* | |
* Based on Sample game developed by Ian Eito, Albert Martos and Ramon Santamaria | |
* Modifed by Monster Brain (monsterbraininc.com) - 2018 | |
* | |
* This game has been created using raylib v1.3 (www.raylib.com) | |
* raylib is licensed under an unmodified zlib/libpng license (View raylib.h for details) | |
* |
View shuffle_unity.cs
void reshuffle(string[] texts) | |
{ | |
// Knuth shuffle algorithm :: courtesy of Wikipedia :) | |
for (int t = 0; t < texts.Length; t++ ) | |
{ | |
string tmp = texts[t]; | |
int r = Random.Range(t, texts.Length); | |
texts[t] = texts[r]; | |
texts[r] = tmp; | |
} |
View CanvasFaderScript.cs
using System.Collections; | |
using System.Collections.Generic; | |
using UnityEngine; | |
using UnityEngine.Events; | |
/* | |
* A Simple Canvas Fader Script (Unity 5.6) | |
* | |
* | |
* Uses : Fade out or Fade In a UI Canvas. Not for transitioning a whole Scene with elements. |
View failed to resolve com.hi5dev.box2d_pexml.txt
https://www.codeandweb.com/texturepacker/tutorials/libgdx-physics | |
Was getting this error. Tried searching. | |
But at last found that I put the repositaries link | |
maven { url "https://dl.bintray.com/hi5dev/maven/" } | |
in the buildscript {} rather than the allprojects {} section. |