View gist:a552a669d28a3c90c144bc1542b86a5e
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
package com.example.mockie.tigaer.database.repository | |
import android.content.Context | |
import com.example.mockie.tigaer.database.database | |
import org.jetbrains.anko.db.* | |
import com.example.mockie.tigaer.database.model.User as UserModel | |
/** | |
* Created by mockie on 18/12/17. | |
*/ |
View formatting barcode
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
val left = 90 | |
val center = 380 | |
val right = 662 | |
for (i in 0 until page) { | |
TscUSB.sendcommand("BARCODE " + left + ",32,\"128\",45,1,0,1,1,2,\"" + finalCode +"\" \r\n") | |
TscUSB.sendcommand("BARCODE " + center + ",32,\"128\",45,1,0,1,1,2,\"" + finalCode +"\" \r\n") |
View gist:166b65b7b03f982bac25f8498c64c77a
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
<div class="row"> | |
@foreach($patterned as $p) | |
<div class="col-xs-6 col-sm-3 col-lg-3"> | |
<div class="thumbnail product-thumbnail" > | |
<img src="{{ url('images/motif/'.$p->code.'.jpg') }}" @click="showDetail"> <!-- image toggle --> | |
<div class="details-product"> <!-- and then show this div --> | |
<?php | |
$meta = unserialize($p->meta); |
View gist:e459d0d41e0d32dcbbd66dff5664b14d
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
package tigaer.inventory | |
import android.content.Intent | |
import android.os.Bundle | |
import android.support.v7.app.AppCompatActivity | |
import android.view.View | |
import kotlinx.android.synthetic.main.upload_motif_activity.* | |
import android.provider.MediaStore | |
import android.graphics.Bitmap | |
import android.net.Uri |
View asdasdas
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
package tigaer.inventory | |
import android.content.Intent | |
import android.os.Bundle | |
import android.support.v7.app.AppCompatActivity | |
import android.view.View | |
import kotlinx.android.synthetic.main.upload_motif_activity.* | |
import android.provider.MediaStore | |
import android.graphics.Bitmap | |
import android.net.Uri |
View test.kt
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
package tigaer.inventory | |
import android.Manifest | |
import android.annotation.SuppressLint | |
import android.app.Activity | |
import android.content.Context | |
import android.content.DialogInterface | |
import android.content.Intent | |
import android.content.pm.PackageManager | |
import android.database.Cursor |
View trending
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 | |
namespace App\Helpers; | |
/* | |
* This class is an implementation of http://stackoverflow.com/questions/787496/what-is-the-best-way-to-compute-trending-topics-or-tags/826509#826509 in PHP. | |
*/ | |
class ZScore { | |
// The rate at which the historic data's effect will diminish | |
private $decay; | |
// The population (data) |
View sfsd.php
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 | |
/** | |
* Created by PhpStorm. | |
* User: mockie | |
* Date: 13/05/15 | |
* Time: 4:20 | |
*/ | |
namespace Port\AdminControlPanel\Controller; |
View WebsiteNotification.php
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 | |
/** | |
* Created by PhpStorm. | |
* User: mockie | |
* Date: 21/04/15 | |
* Time: 15:06 | |
*/ | |
namespace AAA\Forum\Listeners; |
View sample.php
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 | |
/** | |
* Created by PhpStorm. | |
* User: mockie | |
* Date: 13/09/15 | |
* Time: 22:13 | |
*/ | |
namespace ImageManipulator\Utilities; |
NewerOlder