Skip to content

Instantly share code, notes, and snippets.

View holmesal's full-sized avatar
:bowtie:
reactin'

Alonso Holmes holmesal

:bowtie:
reactin'
View GitHub Profile
@vahaknp
vahaknp / NY2022Food.md
Last active May 19, 2022 18:33
NY 2022 March to May Food Adventures

⭐️ Standouts this trip:

🐟 Cervo's Cute, cool, classy. Every dish was an absolute hit. Primarily seafood, but non-seafood dishes are on par. Hard to get into with anything more than 2 people.

🇹🇭 Thai Diner A revelation. Somehow has a ton of fun while keeping the food top notch. The breakfast sandwich is great, but fair warning: you'll be eyeing the dinner dishes.

❤️ Other favorites:

🍲 Wu's Wonton King

@cmcewen
cmcewen / upload.js
Created December 29, 2015 15:38
Upload image from React Native to Cloudinary
var CryptoJS = require('crypto-js');
function uploadImage(uri) {
let timestamp = (Date.now() / 1000 | 0).toString();
let api_key = 'your api key'
let api_secret = 'your api secret'
let cloud = 'your cloud name'
let hash_string = 'timestamp=' + timestamp + api_secret
let signature = CryptoJS.SHA1(hash_string).toString();
let upload_url = 'https://api.cloudinary.com/v1_1/' + cloud + '/image/upload'
@Integralist
Integralist / Install Redis CLI on AWS Instance.md
Last active May 30, 2023 02:58
Install Redis CLI on AWS Instance
  • ssh 10.6.11.62,eu-west-1
  • sudo yum install gcc
  • sudo yum install wget
  • wget http://download.redis.io/redis-stable.tar.gz
  • tar xvzf redis-stable.tar.gz
  • cd redis-stable
  • make
  • src/redis-cli -h mycachecluster.eaogs8.0001.usw2.cache.amazonaws.com -p 6379

Now run redis commands:

'use strict';
var React = require('react-native');
var {
Bundler,
StyleSheet,
Text,
TouchableHighlight,
View,
ScrollView,
@nnarhinen
nnarhinen / Gruntfile.js
Last active February 11, 2020 09:39
Support html5 pushState (or angular.js html5mode) in a yeoman (grunt-contrib-connect) application.
module.exports = function (grunt) {
// show elapsed time at the end
require('time-grunt')(grunt);
// load all grunt tasks
require('load-grunt-tasks')(grunt);
//MODIFIED: add require for connect-modewrite
var modRewrite = require('connect-modrewrite');
grunt.initConfig({
@adamgit
adamgit / .gitignore
Last active July 25, 2024 19:57
.gitignore file for Xcode4 / OS X Source projects
#########################
# .gitignore file for Xcode4 and Xcode5 Source projects
#
# Apple bugs, waiting for Apple to fix/respond:
#
# 15564624 - what does the xccheckout file in Xcode5 do? Where's the documentation?
#
# Version 2.6
# For latest version, see: http://stackoverflow.com/questions/49478/git-ignore-file-for-xcode-projects
#
@insin
insin / oohooh-aahaah.js
Created September 4, 2012 10:47
Backbone.Collection.prototype.move
/**
* Moves a model to the given index, if different from its current index. Handy
* for shuffling models about after they've been pulled into a new position via
* drag and drop.
*/
Backbone.Collection.prototype.move = function(model, toIndex) {
var fromIndex = this.indexOf(model)
if (fromIndex == -1) {
throw new Error("Can't move a model that's not in the collection")
}