Skip to content

Instantly share code, notes, and snippets.

Avatar

João Gabriel Lima jgabriellima

View GitHub Profile
@jgabriellima
jgabriellima / encrypt.html
Created Oct 1, 2021 — forked from LucaLanziani/encrypt.html
AES encryption, equivalent implementation in python (PyCrypto) and Javascript (CryptoJS)
View encrypt.html
<html>
<head>
<script src="/javascripts/CryptoJS/rollups/aes.js"></script>
<script src="/javascripts/CryptoJS/components/mode-cfb-min.js"></script>
<script src="/javascripts/encrypt.js"></script>
</head>
<body>
</body>
</html>
@jgabriellima
jgabriellima / media-query-template.css
Created Sep 14, 2021 — forked from mavieth/media-query-template.css
Media Query Template for Basic CSS
View media-query-template.css
/**
* Basic CSS Media Query Template
* TODO: I should probably use Sass...
* Author: Michael Vieth
* ------------------------------------------
* Responsive Grid Media Queries - 1280, 1024, 768, 480
* 1280-1024 - desktop (default grid)
* 1024-768 - tablet landscape
* 768-480 - tablet
* 480-less - phone landscape & smaller
View base_5_min_EUR_JPY
This file has been truncated, but you can view the full file.
type,datetime,open,high,low,close,ema,sma,rsi,bollow,bolhigh,macd,previous
USDJPY,2017-10-27 01:35:00,114.2020,114.2040,114.2000,114.2000,114.0367,114.0413,58.83,114.0094,114.2857,0.0323,114.1900
USDJPY,2017-10-27 01:30:00,114.1820,114.1820,114.1760,114.1810,114.0334,114.0377,56.72,114.0000,114.2780,0.0318,114.1890
USDJPY,2017-10-27 01:25:00,114.2140,114.2200,114.2110,114.2200,114.0304,114.0339,62.87,113.9907,114.2720,0.0327,114.2220
USDJPY,2017-10-27 01:20:00,114.1820,114.1960,114.1820,114.1900,114.0266,114.0297,59.75,113.9848,114.2556,0.0294,114.2550
USDJPY,2017-10-27 01:15:00,114.1880,114.2010,114.1880,114.1890,114.0233,114.0253,59.65,113.9779,114.2438,0.0278,114.1300
USDJPY,2017-10-27 01:10:00,114.2180,114.2240,114.2090,114.2220,114.0199,114.0212,64.82,113.9768,114.2294,0.0255,114.1580
USDJPY,2017-10-27 01:05:00,114.2400,114.2550,114.2320,114.2550,114.0158,114.0165,70.50,113.9873,114.2050,0.0188,114.0940
@jgabriellima
jgabriellima / persist.js
Created Jun 14, 2019 — forked from benjick/persist.js
mobx-state-tree persist PoC
View persist.js
/* globals localStorage */
import { onSnapshot, applySnapshot } from 'mobx-state-tree';
import Storage from './storage';
export const persist = (name, store, options, schema = {}) => {
let hydrated = false;
let storage = options.storage;
if (typeof localStorage !== 'undefined' && localStorage === storage) {
@jgabriellima
jgabriellima / Git remove folder
Created Jul 27, 2018 — forked from sabarasaba/gist:3080590
Remove directory from remote repository after adding them to .gitignore
View Git remove folder
git rm -r --cached node_modules
git commit -m 'Remove the now ignored directory node_modules'
git push origin master
View to_pickle.py
from nltk.tokenize import word_tokenize
import pickle
import pprint
import json
"""
(heads, descs, keywords) = ([headline], [description], )
"""
View flatten_array_js
function flatten(data){
return [].concat.apply([],[].concat.apply([],data))
}
var result = flatten([[1,2,[3]],4]);
console.log(result);
View python_code_test_carto.md
View Resultado_das_transações_DeepOptions
MOVIMENTO;AMOUNT;DATETIME;PAYOUT;SHORTCODE;TRANSACTION TIME
SIGNAL_100;100.00;25/10/17 21:00;100.00;CALL_FRXUSDJPY_100_1508964887_1508965247_S0P_0;1508965253
-;0.00;25/10/17 21:00;20.00;PUT_FRXUSDJPY_20_1508964887_1508965247_S0P_0;1508965253
NEURAL_NEUTRO;10.00;25/10/17 20:55;10.00;PUT_FRXUSDJPY_10_1508964577_1508964937_S0P_0;1508964941
-;0.00;25/10/17 20:50;10.00;PUT_FRXUSDJPY_10_1508964262_1508964622_S0P_0;1508964624
SIGNAL_100;100.00;25/10/17 18:50;100.00;PUT_FRXUSDJPY_100_1508957070_1508957430_S0P_0;1508957432
NEURAL;20.00;25/10/17 18:50;20.00;PUT_FRXUSDJPY_20_1508957070_1508957430_S0P_0;1508957432
NEURAL;20.00;25/10/17 18:50;20.00;PUT_FRXUSDJPY_20_1508957070_1508957430_S0P_0;1508957432
SIGNAL_100;100.00;25/10/17 18:50;100.00;PUT_FRXUSDJPY_100_1508957070_1508957430_S0P_0;1508957432
NEURAL_NEUTRO;10.00;25/10/17 18:40;10.00;PUT_FRXUSDJPY_10_1508956452_1508956812_S0P_0;1508956814
View Politia_Privacidade_Mobilito
Privacy Policy
João Gabriel built the Mobilito app as a Free app. This SERVICE is provided by João Gabriel at no cost and is intended for use as is.
This page is used to inform website visitors regarding my policies with the collection, use, and disclosure of Personal Information if anyone decided to use my Service.
If you choose to use my Service, then you agree to the collection and use of information in relation to this policy. The Personal Information that I collect is used for providing and improving the Service. I will not use or share your information with anyone except as described in this Privacy Policy.
The terms used in this Privacy Policy have the same meanings as in our Terms and Conditions, which is accessible at Mobilito unless otherwise defined in this Privacy Policy.