Skip to content

Instantly share code, notes, and snippets.

View xxnjdlys's full-sized avatar

xxnjdlys xxnjdlys

  • China Beijing
  • 17:07 (UTC +08:00)
View GitHub Profile
@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
<?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
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
// 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
}
@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:
@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
*/
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;
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;
#!/bin/bash
get_adb_devices()
{
adb $ADB_SERVER devices $LONG 2>&1 | tail -n +2 | sed '/^$/d'
}
git_pull()
{
[[ "$UNAME" == 'Linux' ]] && OPT=-e
@xxnjdlys
xxnjdlys / S.java
Created July 27, 2017 11:10
user action
package com.dailyupfitness.common.user;
/**
* ███████████████████████████
* ███████▀▀▀░░░░░░░▀▀▀███████
* ████▀░░░░░░░░░░░░░░░░░▀████
* ███│░░░░░░░░░░░░░░░░░░░│███
* ██▌│░░░░░░░░░░░░░░░░░░░│▐██
* ██░└┐░░░░░░░░░░░░░░░░░┌┘░██
* ██░░└┐░░░░░░░░░░░░░░░┌┘░░██