Skip to content

Instantly share code, notes, and snippets.

View buraksahin59's full-sized avatar
:atom:
React Native

Burak buraksahin59

:atom:
React Native
View GitHub Profile
@ridgeO
ridgeO / 01.js
Created June 27, 2017 20:19
Code snippets from RNFirebaseChat application as featured in http://platypus.is/posts/6
# index.ios.js and index.android.js
import './app.js';
@cmikeb1
cmikeb1 / fetchCoinPrice.scpt
Created June 9, 2017 01:12
AppleScript to retrieve crypto currency prices
validate_sheet()
set coins to {}
-- retrieve the list of coins from number
tell application "Numbers"
tell table 1 of sheet 1 of document 1
set cntRow to count row
set cntCol to count column
@Bhavdip
Bhavdip / sketch-never-ending.md
Created October 6, 2016 15:53
Modify Sketch to never ending trial

###Sketch trial non stop

Open hosts files:

$ open /private/etc/hosts

Edit the file adding:

127.0.0.1 backend.bohemiancoding.com

127.0.0.1 bohemiancoding.sketch.analytics.s3-website-us-east-1.amazonaws.com

@rturk
rturk / gist:858c1afaee170a3a141adc7da652883e
Last active December 26, 2020 18:50
React Native Router Flux - Tab Bar with Icon
//This is a Redacted version to be used as a benchmark/example for React Native Router Flux
import React, {
Component,
StatusBar,
Text,
View,
StyleSheet,
PixelRatio,
} from 'react-native';
#!/bin/bash
# This script resizes all the images it finds in a folder (and its subfolders) and resizes them
# The resized image is placed in the /resized folder which will reside in the same directory as the image
#
# Usage: > ./batch_resize.sh
initial_folder="/your/images/folder" # You can use "." to target the folder in which you are running the script for example
resized_folder_name="resized"
all_images=$(find -E $initial_folder -iregex ".*\.(jpg|gif|png|jpeg)")
@supawaza
supawaza / ST2 - Exclude files.json
Created December 17, 2013 17:37
Hide hidden files inside Sublime Text such as .DS_Store or any cache files. Hit Cmd+, to open up the setting and paste the following line in. Source: https://coderwall.com/p/znswpq --- #snippet #SublimeText
{
"file_exclude_patterns":
[
"*.svn",
"*.git",
"*.hg",
"CVS",
"*tmp/cache",
"*._*",
"*.DS_Store"
@brasofilo
brasofilo / wpse_76593.php
Last active August 17, 2017 11:38
Hide wp-content/themes path
<?php
// REMOVE WP-CONTENT
// Rewrites DO NOT happen for child themes
// Add .htaccess rewrite rules to convert urls
// like "http://example.com/wp-content/themes/theme-name/path" into "http://example.com/path"
/*
in case your wordpress is in a folder,
and you change the site_url to the root of the domain,
add the folder name in lines 29 to 34,
@sgmurphy
sgmurphy / url_slug.js
Created July 12, 2012 02:05
URL Slugs in Javascript (with UTF-8 and Transliteration Support)
/**
* Create a web friendly URL slug from a string.
*
* Requires XRegExp (http://xregexp.com) with unicode add-ons for UTF-8 support.
*
* Although supported, transliteration is discouraged because
* 1) most web browsers support UTF-8 characters in URLs
* 2) transliteration causes a loss of information
*
* @author Sean Murphy <sean@iamseanmurphy.com>
@kopiro
kopiro / get-social-counts.php
Created October 29, 2011 11:17
Get social counts from Facebook, Twitter, GPlus
<?php
/* Return object of shared counts */
function get_social_count( $link ) {
$r = (object)array();
$r->facebook = get_social_count_facebook($link);
$r->twitter = get_social_count_twitter($link);
$r->gplus = get_social_count_gplus($link);
return $r;
}