Skip to content

Instantly share code, notes, and snippets.

View Oscarz90's full-sized avatar
🤓
coding...

Oscar Oscarz90

🤓
coding...
View GitHub Profile
@Oscarz90
Oscarz90 / Native.js
Created August 1, 2018 20:59 — forked from alexreardon/Native.js
Some vanilla JS methods and patterns
// Native selectors.
(function(window, document) {
'use strict';
var noop = function() {
};
// DOCUMENT LOAD EVENTS
// not needed at the bottom of the page
document.addEventListener('DOMContentLoaded', noop);
@Oscarz90
Oscarz90 / TicTacToeGame.js
Last active August 22, 2018 16:35
Implementation of Tic Tac Toe Game with certain level of AI.
/**
* OMS
* August 2018
**/
/**
* Executes the move for a tic tac toe game given a player who plays the turn.
* @param {array} board The Board Game of tic tac toe with a state
* @param {string} player The player who plays the turn.
* @returns {array} board Returns the board with the move of the player
*/
[user]
name = Pavan Kumar Sunkara
email = pavan.sss1991@gmail.com
username = pksunkara
[core]
editor = vim
whitespace = fix,-indent-with-non-tab,trailing-space,cr-at-eol
excludesfile = ~/.gitignore
[sendemail]
smtpencryption = tls
@Oscarz90
Oscarz90 / keybase.md
Created October 19, 2018 22:17
Keybase

Keybase proof

I hereby claim:

  • I am oscarz90 on github.
  • I am oscarz90 (https://keybase.io/oscarz90) on keybase.
  • I have a public key ASBaMpTNTfcfIZEq2gDxv42pI51LoGkqv_h7v3vN4LVJeQo

To claim this, I am signing this object:

@Oscarz90
Oscarz90 / sketch-never-ending.md
Created March 26, 2019 19:24 — forked from Bhavdip/sketch-never-ending.md
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

@Oscarz90
Oscarz90 / gist:419a511b401f81d4daf4ae14a78c7434
Created April 23, 2019 16:45 — forked from rxaviers/gist:7360908
Complete list of github markdown emoji markup

People

:bowtie: :bowtie: 😄 :smile: 😆 :laughing:
😊 :blush: 😃 :smiley: ☺️ :relaxed:
😏 :smirk: 😍 :heart_eyes: 😘 :kissing_heart:
😚 :kissing_closed_eyes: 😳 :flushed: 😌 :relieved:
😆 :satisfied: 😁 :grin: 😉 :wink:
😜 :stuck_out_tongue_winking_eye: 😝 :stuck_out_tongue_closed_eyes: 😀 :grinning:
😗 :kissing: 😙 :kissing_smiling_eyes: 😛 :stuck_out_tongue:
@Oscarz90
Oscarz90 / web-servers.md
Created May 24, 2019 15:08 — forked from willurd/web-servers.md
Big list of http static server one-liners

Each of these commands will run an ad hoc http static server in your current (or specified) directory, available at http://localhost:8000. Use this power wisely.

Discussion on reddit.

Python 2.x

$ python -m SimpleHTTPServer 8000
@Oscarz90
Oscarz90 / ConventionalCommitsEmoji.md
Created April 8, 2020 03:25 — forked from parmentf/ConventionalCommitsEmoji.md
Emoji for Conventional Commits
Type Emoji code
feat :sparkles:
fix 🐛 :bug:
docs 📚 :books:
style 💎 :gem:
refactor 🔨 :hammer:
perf 🚀 :rocket:
test 🚨 :rotating_light:
build 📦 :package:
@Oscarz90
Oscarz90 / idea
Created May 20, 2020 21:44 — forked from chrisdarroch/idea
Open a project in IntelliJ IDEA from your command line!
#!/bin/sh
# check for where the latest version of IDEA is installed
IDEA=`ls -1d /Applications/IntelliJ\ * | tail -n1`
wd=`pwd`
# were we given a directory?
if [ -d "$1" ]; then
# echo "checking for things in the working dir given"
wd=`ls -1d "$1" | head -n1`
@Oscarz90
Oscarz90 / redux.js
Last active June 18, 2020 18:21
Basic Redux concepts
import { createStore } from 'redux'
/**
* This is a reducer, a pure function with (state, action) => state signature.
* It describes how an action transforms the state into the next state.
*
* The shape of the state is up to you: it can be a primitive, an array, an object,
* or even an Immutable.js data structure. The only important part is that you should
* not mutate the state object, but return a new object if the state changes.
*