Skip to content

Instantly share code, notes, and snippets.

Avatar

Farid Safi FaridSafi

View GitHub Profile
@FaridSafi
FaridSafi / keybindings.json
Created Feb 16, 2018
vscode keybindings.json
View keybindings.json
[
{
"key": "ctrl+shift+tab",
"command": "workbench.action.previousEditor"
},
{
"key": "shift+cmd+[",
"command": "-workbench.action.previousEditor"
},
{
@FaridSafi
FaridSafi / settings.json
Last active Feb 16, 2018
vscode settings.json
View 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,
View keymap.cson
'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 Aug 16, 2016
archive js project
View archive-js-project
zip -r project.zip project -x "*node_modules*" -x "*.git*" --verbose
View 400_messages.js
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 Apr 29, 2016
react-native-meteor and react-native-google-signin
View react-native-meteor-google-signin.js
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 Oct 29, 2015
react-native-google-places-autocomplete-example.js
View 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,