Skip to content

Instantly share code, notes, and snippets.

Avatar

muhamad rifki mockiemockiz

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