Skip to content

Instantly share code, notes, and snippets.

View FaridSafi's full-sized avatar

Farid Safi FaridSafi

View GitHub Profile
@FaridSafi
FaridSafi / keybindings.json
Created February 16, 2018 08:13
vscode keybindings.json
[
{
"key": "ctrl+shift+tab",
"command": "workbench.action.previousEditor"
},
{
"key": "shift+cmd+[",
"command": "-workbench.action.previousEditor"
},
{
@FaridSafi
FaridSafi / settings.json
Last active February 16, 2018 10:01
vscode settings.json
{
"workbench.iconTheme": "vscode-icons",
"window.zoomLevel": 1,
"editor.formatOnSave": true,
"lineJumper.linesToJump": 4,
"workbench.editor.enablePreview": false,
"editor.snippetSuggestions": "top",
"editor.tabSize": 2,
"editor.insertSpaces": true,
"editor.scrollBeyondLastLine": false,
'body':
# 'ctrl-tab': '!native'
# 'ctrl-shift-tab': '!native'
# 'cmd-}': '!native'
# 'cmd-{': '!native'
'ctrl-tab': 'pane:show-next-item'
'ctrl-shift-tab': 'pane:show-previous-item'
'cmd-left': 'editor:move-to-beginning-of-line'
'alt-left': 'editor:move-to-previous-subword-boundary'
@FaridSafi
FaridSafi / archive-js-project
Last active August 16, 2016 09:52
archive js project
zip -r project.zip project -x "*node_modules*" -x "*.git*" --verbose
module.exports = [
{_id: Math.round(Math.random() * 1000000),text: 'begin',createdAt: new Date(Date.UTC(2016, 7, 30, 17, 20, 0)),user: {_id: 2,name: 'React Native',},},
{_id: Math.round(Math.random() * 1000000),text: 'Are you building a chat app?',createdAt: new Date(Date.UTC(2016, 7, 30, 17, 20, 0)),user: {_id: 2,name: 'React Native',},},
{_id: Math.round(Math.random() * 1000000),text: 'Are you building a chat app?',createdAt: new Date(Date.UTC(2016, 7, 30, 17, 20, 0)),user: {_id: 2,name: 'React Native',},},
{_id: Math.round(Math.random() * 1000000),text: 'Are you building a chat app?',createdAt: new Date(Date.UTC(2016, 7, 30, 17, 20, 0)),user: {_id: 2,name: 'React Native',},},
{_id: Math.round(Math.random() * 1000000),text: 'Are you building a chat app?',createdAt: new Date(Date.UTC(2016, 7, 30, 17, 20, 0)),user: {_id: 2,name: 'React Native',},},
{_id: Math.round(Math.random() * 1000000),text: 'Are you building a chat app?',createdAt: new Date(Date.UTC(2016, 7, 30, 17, 20, 0)),user: {_id: 2,name
@FaridSafi
FaridSafi / react-native-meteor-google-signin.js
Created April 29, 2016 10:17
react-native-meteor and react-native-google-signin
import {GoogleSignin} from 'react-native-google-signin';
import Meteor from 'react-native-meteor';
GoogleSignin.signIn()
.then((user) => {
Meteor.loginWithGoogle(user, (err) => {
if (!err) {
// success
}
});
@FaridSafi
FaridSafi / react-native-google-places-autocomplete-example.js
Created October 29, 2015 16:17
react-native-google-places-autocomplete-example.js
/**
* Sample React Native App
* https://github.com/facebook/react-native
*/
'use strict';
var React = require('react-native');
var {
AppRegistry,
StyleSheet,