- list packages
adb shell pm list packages -f
- delegate package
adb shell am start -a android.intent.action.DELETE -d package:
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
https://api.telegram.org/bot<bot-token>/setWebhook?url=<webhook-url> | |
<bot-token> - bot token get from BotFather on Telegram | |
<webhook-url> - webhook url in base64 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <stdio.h> | |
#include <assert.h> | |
int main(int argc, char* argv[]) | |
{ | |
int a = 10; | |
assert(a != 10); | |
printf("end of program\n"); | |
return 0; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <SDL2/SDL.h> | |
#include <stdio.h> | |
SDL_Window *window = NULL; | |
SDL_Renderer *renderer = NULL; | |
int main(int argc, char* argv[]) | |
{ | |
if (SDL_Init(SDL_INIT_VIDEO) < 0) { | |
SDL_Log("failed to init: %s", SDL_GetError()); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* Simple SDL2 program using OpenGL as rendering pipeline. | |
*/ | |
#include <iostream> | |
#include <SDL2/SDL.h> | |
#include <SDL2/SDL_opengl.h> | |
#include <OpenGL/GLU.h> | |
#define SCREEN_WIDTH 640 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
* dw - delete word | |
* . - to repeat changes | |
* u - undo changes (atomic operation) | |
* verbs in vim | |
- d => delete | |
- c => change | |
- > => indent | |
- v => visually select | |
- y => yank (copy) | |
* cw - delete and get into insert mode |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import bpy | |
def strVector3( v3 ): | |
return str(v3.x) + "," + str(v3.y) + "," + str(v3.z) | |
# create a new cube | |
bpy.ops.mesh.primitive_cube_add() | |
# newly created cube will be automatically selected | |
cube = bpy.context.selected_objects[0] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/**************************************************************************** | |
Copyright (c) 2010-2012 cocos2d-x.org | |
Copyright (c) 2008-2010 Ricardo Quesada | |
Copyright (c) 2011 Zynga Inc. | |
http://www.cocos2d-x.org | |
Permission is hereby granted, free of charge, to any person obtaining a copy | |
of this software and associated documentation files (the "Software"), to deal | |
in the Software without restriction, including without limitation the rights |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
use hex_literal::hex; | |
use web3::{ | |
contract::{Contract, Options}, | |
futures::{future, StreamExt}, | |
types::{FilterBuilder, Address}, | |
}; | |
use std::str::FromStr; | |
#[tokio::main] | |
async fn main() -> web3::contract::Result<()> { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
macro_rules! serial_test { | |
(fn $name: ident() $body: block) => { | |
#[test] | |
fn $name() { | |
let guard = LOCK.try_lock(); | |
if let Ok(mutex) = guard { | |
$body | |
} | |
else { | |
let err = guard.unwrap_err(); |
NewerOlder