Skip to content

Instantly share code, notes, and snippets.

View danielrvt's full-sized avatar

Daniel Rodriguez del Villar Trimarchi danielrvt

  • Universidad Simon Bolivar, Caracas, Venezuela
  • 11:22 (UTC -12:00)
View GitHub Profile
@louy
louy / AccessibilityWrapper.tsx
Last active August 6, 2024 21:06
RN Accessibility Wrapper, a custom view that allows you to control the accessibility behaviour of a React Native component tree
/**
* @author Louay Alakkad (github.com/louy)
* @license MIT https://opensource.org/licenses/MIT
*/
import React from 'react'
import PropTypes from 'prop-types'
import {
NativeModules,
ViewProps,
ViewPropTypes,

SASS/SCSS/CSS Spacing Utility Classes

Following @ilicmarko's comment, here's my spacing.scss file…

(see spacing.scss)

…which generates the following spacing utility classes…

(see spacing.css)

@danielrvt
danielrvt / Sorted sets
Last active November 22, 2021 07:30
Using sorted sets with redis client for NodeJS. In this example I retrieve the list of elements ordered by score in descending order
var redis = require("redis"),
client = redis.createClient();
// if you'd like to select database 3, instead of 0 (default), call
// client.select(3, function() { /* ... */ });
client.on("error", function (err) {
console.log("Error " + err);
});
@davej
davej / delete_all_tweets.py
Last active August 12, 2024 16:20
This script will delete all of the tweets in a specified account.
# -*- coding: utf-8 -*-
"""
This script will delete all of the tweets in the specified account.
You may need to hit the "more" button on the bottom of your twitter profile
page every now and then as the script runs, this is due to a bug in twitter.
You will need to get a consumer key and consumer secret token to use this
script, you can do so by registering a twitter application at https://dev.twitter.com/apps
@requirements: Python 2.5+, Tweepy (http://pypi.python.org/pypi/tweepy/1.7.1)