Skip to content

Instantly share code, notes, and snippets.

View yakovmeister's full-sized avatar
🐶
doggy doggy what now?

Jacob yakovmeister

🐶
doggy doggy what now?
View GitHub Profile
@yakovmeister
yakovmeister / logcat.txt
Created February 24, 2017 13:54
bootloop after update from 0207 -> 0223
This file has been truncated, but you can view the full file.
--------- beginning of system
02-24 21:47:47.219 2917 3176 D MountService: Setting up emulation state, initlocked=false
02-24 21:47:47.219 2917 3176 D CryptdConnector: SND -> {2 cryptfs unlock_user_key 0 0 ! !}
02-24 21:47:47.220 233 238 D vold : e4crypt_unlock_user_key 0 serial=0 token_present=0
02-24 21:47:47.221 2917 3178 D CryptdConnector: RCV <- {200 2 Command succeeded}
02-24 21:47:47.221 2917 3176 D MountService: Thinking about reset, mSystemReady=true, mDaemonConnected=true
02-24 21:47:47.222 2917 3176 D VoldConnector: SND -> {3 volume reset}
02-24 21:47:47.222 2917 2959 I ActivityManager: Force stopping com.android.providers.media appid=10010 user=-1: vold reset
02-24 21:47:47.224 2917 3177 D VoldConnector: RCV <- {651 emulated 7}
02-24 21:47:47.225 233 237 V vold : /system/bin/sgdisk
<?php
namespace App\Transformers;
use Illuminate\Support\Collection;
class SampleTransformer extends Transformer
{
@yakovmeister
yakovmeister / validate_credit_card.js
Created November 2, 2016 22:35 — forked from nclvp443/validate_credit_card.js
Luhn algorithm in Javascript. Check valid credit card numbers
// takes the form field value and returns true on valid number
function valid_credit_card(value) {
// accept only digits, dashes or spaces
if (/[^0-9-\s]+/.test(value)) return false;
// The Luhn Algorithm. It's so pretty.
var nCheck = 0, nDigit = 0, bEven = false;
value = value.replace(/\D/g, "");
for (var n = value.length - 1; n >= 0; n--) {