This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<code_scheme name="MeliAndroid" version="173"> | |
<option name="OTHER_INDENT_OPTIONS"> | |
<value> | |
<option name="USE_TAB_CHARACTER" value="true" /> | |
</value> | |
</option> | |
<option name="LINE_SEPARATOR" value="
" /> | |
<option name="GENERATE_FINAL_LOCALS" value="true" /> | |
<option name="GENERATE_FINAL_PARAMETERS" value="true" /> | |
<option name="CLASS_COUNT_TO_USE_IMPORT_ON_DEMAND" value="999999999" /> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import edu.umd.cs.findbugs.annotations.SuppressFBWarnings; | |
import java.beans.BeanInfo; | |
import java.beans.IntrospectionException; | |
import java.beans.Introspector; | |
import java.beans.PropertyDescriptor; | |
import java.lang.reflect.Field; | |
import java.lang.reflect.InvocationTargetException; | |
import java.lang.reflect.Method; | |
import java.sql.ResultSet; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Are you goddamn tired of forgetting to remove the mailtrack signature? | |
// Are you poor or miserable enough to refuse paying for that service, | |
// or you consider that giving privilege over reading your emails | |
// is enough cost for also giving them some money? | |
// | |
// Ok, so, lets get rid of that annoying freemium shit. | |
// First, get some plugin to run JS code on your pages. | |
// This one is a good choice -> https://chrome.google.com/webstore/detail/custom-javascript-for-web/poakhlngfciodnhlhhgnaaelnpjljija | |
//Then just apply the following script |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# If you come from bash you might have to change your $PATH. | |
# export PATH=$HOME/bin:/usr/local/bin:$PATH | |
# Path to your oh-my-zsh installation. | |
export ZSH="~/.oh-my-zsh" | |
# Set name of the theme to load --- if set to "random", it will | |
# load a random theme each time oh-my-zsh is loaded, in which case, | |
# to know which specific one was loaded, run: echo $RANDOM_THEME | |
# See https://github.com/robbyrussell/oh-my-zsh/wiki/Themes |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
echo "☠️ Matando lo que sea que este corriendo en el puerto $1" | |
kill -9 $(lsof -ti tcp:$1) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/* | |
* 2007-2016 PrestaShop | |
* | |
* NOTICE OF LICENSE | |
* | |
* This source file is subject to the Academic Free License (AFL 3.0) | |
* that is bundled with this package in the file LICENSE.txt. | |
* It is also available through the world-wide-web at this URL: | |
* http://opensource.org/licenses/afl-3.0.php |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const fetch = require('node-fetch'), | |
BASE = 'http://letsrevolutionizetesting.com/challenge.json'; | |
async function getCode(url) { | |
let response = await fetch(url); | |
let jsonresponse = await response.json(); | |
return jsonresponse; | |
} | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
# Fix RN version 33 | |
echo "Checking that ReactNative v 432 is patched" | |
patch -N -p1 --dry-run --silent < rn432-94.patch >/dev/null 2>&1 | |
if [ $? -eq 0 ]; | |
then | |
# apply the patch | |
patch -N -p1 < rn432-94.patch |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* Generate daily dates intervals for a date range. | |
Example: | |
For a startDate, endDate pair of | |
2018-05-08T13:12:10.846Z, 2018-05-10T20:46:00.846Z | |
The output will be | |
[ [ 2018-05-08T13:12:10.846Z, 2018-05-08T23:59:59.999Z ], | |
[ 2018-05-09T00:00:00.000Z, 2018-05-09T23:59:59.999Z ], |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var xor_str = function(s,K) | |
{ | |
c = ''; | |
for(i=0; i<str.length; i++) { | |
for(ik=0; ik<K.length; ik++){ | |
c += String.fromCharCode(str[i].charCodeAt(0).toString(10) ^ key.charCodeAt(0).toString(10)); // XORing with letter 'K' | |
} | |
} | |
return c; | |
} |