Skip to content

Instantly share code, notes, and snippets.

View eteamin's full-sized avatar
🌴
On vacation

Amin Etesamian eteamin

🌴
On vacation
View GitHub Profile
# PYANDROID
# VERSION 1.1 ALPHA
# USES (v1.0):
# android_version(e*)
# sdk_version(e)
# android_name(e)
# processor_machine()
# ram_total(type_)
# directory_size(directory)
@levynir
levynir / RotatingView.js
Last active January 19, 2021 09:52
React Native Rotating Component
/**
* Created by nirlevy on 02/07/2017.
* MIT Licence
*/
import React, { Component } from 'react';
import PropTypes from 'prop-types';
import { Animated, Easing } from 'react-native';
export class RotatingView extends Component {
state = {
@ParsaHarooni
ParsaHarooni / channel.js
Created January 8, 2018 11:39
Get telegram channel member count.
// npm install request
// npm install cheerio
const request = require("request");
const cheerio = require("cheerio")
function getMembersCount(channel) {
return new Promise((resolve, reject) => {
request(`https://t.me/${channel}/?pagehidden=false`, (error, resp, body) => {
const data = cheerio.load(body, {normalizeWhitespace:true});
@meyt
meyt / extract_hashtags.py
Last active July 25, 2018 08:25
Extract hashtags from string (python 3.x)
import re
import unittest
def extract_tags(text: str) -> list:
return re.compile(r"(?:^|\W)[##](?!\d\d)(?!\d$)(\w+)", re.UNICODE).findall(text)
class ExtractTagsTestCase(unittest.TestCase):