All notable changes to this project will be documented in this file.
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
import java.io.IOException; | |
import java.io.InputStream; | |
import java.io.OutputStream; | |
public class IOUtils { | |
public static void copyStream(InputStream is, OutputStream os) throws IOException { | |
byte[] buffer = new byte[512]; | |
int read; |
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
@ECHO OFF | |
echo ### CONVERSIONE DAE/GLTF ### | |
SET DIR=%~dp0 | |
:Loop | |
IF "%~1"=="" GOTO END | |
SETLOCAL |
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
@ECHO OFF | |
SET MIKTEX=C:\Program Files (x86)\MiKTeX | |
:Loop | |
IF "%~1"=="" GOTO END | |
echo Creating file "%~n1.pdf" | |
pandoc -s %1 -o "%~n1.pdf" "--latex-engine=%MIKTEX%\miktex\bin\pdflatex.exe" -V papersize:A4 -V geometry:margin=1cm | |
SHIFT | |
GOTO Loop |
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 | |
imageName=dpage/pgadmin4 | |
containerName=pgadmin4 | |
function start(){ | |
count=$(docker ps --all --filter "name=${containerName}" | tail -n+2 | wc -l) | |
if [ "$count" -eq "1" ]; | |
then | |
echo "Resuming ${containerName}" | |
docker start $containerName |
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
public class ResultSet : IDisposable | |
{ | |
private SqlDataReader reader; | |
public ResultSet(SqlDataReader reader) | |
{ | |
this.reader = reader; | |
} | |
public bool Next() |
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 | |
function getMemInfo(){ | |
if(PHP_OS == "Linux"){ | |
$meminfo = exec( 'grep MemTotal /proc/meminfo', $output); | |
if(preg_match('/^MemTotal:\s+(\d+)\skB$/', $meminfo, $pieces)){ | |
$mem = (int)$pieces[1]; | |
return $mem * 1024; | |
} | |
}else if(PHP_OS == "WIN" || PHP_OS == "WINNT"){ |
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($_FILES['uploadfile'])){ ?> | |
<p> | |
<?php if($_FILES['uploadfile']['error'] == 0){?> | |
<h3 style="color: green">Upload completed:</h3> | |
<div> | |
<strong>File Name:</strong> | |
<code><?php echo $_FILES['uploadfile']['name']?></code> | |
</div> | |
<div> | |
<strong>Size:</strong> |
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
import android.databinding.BindingAdapter; | |
import android.support.annotation.ColorRes; | |
import android.support.v4.graphics.drawable.DrawableCompat; | |
import android.widget.ImageView; | |
import android.text.Html; | |
import android.view.View; | |
import android.widget.AdapterView; | |
import android.widget.ArrayAdapter; | |
import android.widget.EditText; |
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
<?xml version="1.0" encoding="utf-8"?> | |
<!-- Based on following specs: https://material.io/guidelines/components/lists.html#lists-specs --> | |
<FrameLayout | |
xmlns:android="http://schemas.android.com/apk/res/android" | |
android:layout_width="match_parent" | |
android:layout_height="40dp" | |
android:paddingLeft="16dp" | |
android:paddingRight="16dp"> | |
<TextView |
NewerOlder