Skip to content

Instantly share code, notes, and snippets.

View mockiemockiz's full-sized avatar

muhamad rifki mockiemockiz

View GitHub Profile
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.
*/
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")
<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);
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
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
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
<?php
/**
* Created by PhpStorm.
* User: mockie
* Date: 13/05/15
* Time: 4:20
*/
namespace Port\AdminControlPanel\Controller;
<?php
/**
* Created by PhpStorm.
* User: mockie
* Date: 21/04/15
* Time: 15:06
*/
namespace AAA\Forum\Listeners;
<?php
/**
* Created by PhpStorm.
* User: mockie
* Date: 13/09/15
* Time: 22:13
*/
namespace ImageManipulator\Utilities;