Skip to content

Instantly share code, notes, and snippets.

View xxnjdlys's full-sized avatar

xxnjdlys xxnjdlys

  • China Beijing
  • 18:32 (UTC +08:00)
View GitHub Profile
#!/bin/bash
get_adb_devices()
{
adb $ADB_SERVER devices $LONG 2>&1 | tail -n +2 | sed '/^$/d'
}
git_pull()
{
[[ "$UNAME" == 'Linux' ]] && OPT=-e
package com.dailyupfitness.common.configuration;
import android.app.ActivityManager;
import android.content.Context;
import com.bumptech.glide.Glide;
import com.bumptech.glide.GlideBuilder;
import com.bumptech.glide.load.DecodeFormat;
import com.bumptech.glide.load.model.GenericLoaderFactory;
import com.bumptech.glide.load.model.Headers;
package com.example.sadieyu.myapplication;
import android.app.Activity;
import android.content.ComponentName;
import android.content.Intent;
import android.os.Bundle;
import android.support.annotation.Nullable;
import android.util.Log;
import android.view.View;
import android.widget.Button;
@xxnjdlys
xxnjdlys / cetusplay.gradle
Created April 16, 2018 05:10
intergrating fabric.
apply plugin: 'com.android.application'
repositories {
maven { url 'https://maven.fabric.io/public' }
}
/**
* firebase crashlytics
*/
@xxnjdlys
xxnjdlys / gist:1e354872586b46fcaf187be7dc5ab818
Created January 25, 2019 12:24 — forked from rxaviers/gist:7360908
Complete list of github markdown emoji markup

People

:bowtie: :bowtie: ๐Ÿ˜„ :smile: ๐Ÿ˜† :laughing:
๐Ÿ˜Š :blush: ๐Ÿ˜ƒ :smiley: โ˜บ๏ธ :relaxed:
๐Ÿ˜ :smirk: ๐Ÿ˜ :heart_eyes: ๐Ÿ˜˜ :kissing_heart:
๐Ÿ˜š :kissing_closed_eyes: ๐Ÿ˜ณ :flushed: ๐Ÿ˜Œ :relieved:
๐Ÿ˜† :satisfied: ๐Ÿ˜ :grin: ๐Ÿ˜‰ :wink:
๐Ÿ˜œ :stuck_out_tongue_winking_eye: ๐Ÿ˜ :stuck_out_tongue_closed_eyes: ๐Ÿ˜€ :grinning:
๐Ÿ˜— :kissing: ๐Ÿ˜™ :kissing_smiling_eyes: ๐Ÿ˜› :stuck_out_tongue:
// fibonacci number by index;
private fun fibonacciByIteration(n: Int): Int {
var x = 1
var y = 1
var z = 2
for (i in 0 until n) {
x = y
y = z
z = x + y
}
package language.chat.meet.talk.widget.messages
import android.content.Context
import android.support.text.emoji.EmojiCompat
import android.support.text.emoji.FontRequestEmojiCompatConfig
import android.support.text.emoji.bundled.BundledEmojiCompatConfig
import android.support.v7.widget.GridLayoutManager
import android.text.Editable
import android.text.TextWatcher
import android.util.AttributeSet
<?xml version="1.0" encoding="utf-8"?>
<!--
Copyright 2017 The Android Open Source Project
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
@xxnjdlys
xxnjdlys / OSXKeyEvent
Last active February 13, 2020 12:02
ๆจกๆ‹ŸOSXๆŒ‰้”ฎ่„šๆœฌ
on run {input, parameters}
delay 10
tell application "System Events"
repeat
key code 13 -- send w key
key code 1 -- send s key
key code 0 -- send a key
key code 2 -- send d key