Skip to content

Instantly share code, notes, and snippets.

View surielmx's full-sized avatar
🏠
Working from home

developermx surielmx

🏠
Working from home
View GitHub Profile
@surielmx
surielmx / gist:8e9951869995ad06cf4935003a9f6fe7
Created November 23, 2020 21:47 — 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:
@surielmx
surielmx / electron-react.js
Last active September 10, 2020 01:16
HashRouter for Electron and React
https://github.com/ReactTraining/react-router/issues/6726
// Not BrowserHistory, this for pageweb
import { HashRouter, Route } from "react-router-dom";
class App extends Component {
render() {
return (
<HashRouter>
<Route exact={true}
@surielmx
surielmx / index.js
Created November 27, 2019 20:47
Archipielago
const fs = require("fs");
fs.readFile("./test_case.txt", function(err, buf) {
const fileToString = String(buf);
const splitFile = fileToString.split('\n');
const integerCase = [];
const items = [];
const x = [];
const y = [];

update object

var state = {
    id: 1,
    points: 100,
    name: "Goran"
};

var newState = {
@surielmx
surielmx / card-movement.js
Created November 15, 2016 18:29
next and previous element
_cardMovement: function(selected, direction) {
var indexOf;
var nextIndex;
var cardMovement;
var itemsLength= this.cards.length;
var _selected = selected;
indexOf = this.searchSelected(_selected);
if (direction === "next") {
<!DOCTYPE html>
<html>
<head>
<script src="http://code.jquery.com/jquery-1.4.2.min.js"></script>
<script src="http://maps.googleapis.com/maps/api/js?sensor=false"></script>
<script>
jQuery(window).ready(function(){
g_initialize();
jQuery("#findLocationBtn").click(initiate_geolocation);
});
@surielmx
surielmx / Invoke twitter direct
Last active December 26, 2015 07:09
Invoke twitter direct
function InvokeToShare(){
blackberry.invoke.invoke({
target: "Twitter",
action: "bb.action.SHARE",
data: "test",
uri: canvas.src,
}, onShareSuccess, onShareError);
}
function InvokeToShare(){
var request = {
action : 'bb.action.SHARE',
data:"test",
uri : canvas.src,
target_type: ["APPLICATION", "VIEWER", "CARD"]
};
blackberry.invoke.card.invokeTargetPicker(request, "Share_Test", onShareSuccess, onShareError)
function onShareSuccess(response) {