Skip to content

Instantly share code, notes, and snippets.

View adrixvoid's full-sized avatar

Adrian Lambrese adrixvoid

View GitHub Profile
<IfModule mod_rewrite.c>
<IfModule mod_negotiation.c>
Options -MultiViews
</IfModule>
RewriteEngine On
# Allow Authorization Headers
RewriteCond %{HTTP:Authorization} ^(.*)
RewriteRule .* - [e=HTTP_AUTHORIZATION:%1]
https://stackoverflow.com/questions/6656619/git-and-nasty-error-cannot-lock-existing-info-refs-fatal
git remote prune origin
#include <stdio.h>

const int cantmaxJugadas= 9;
int tateti[3][3];


//Funcion de termino juego
int ValidarFilas()
{
@adrixvoid
adrixvoid / Visual Studio Code.md
Last active May 20, 2018 15:50
Visual Studio Code

Workspace Settings

{
    "files.exclude": {
        "**/.git": true,
        "**/.DS_Store": true,
        ".vscode": true
    },
    "editor.tabSize": 2
}
@adrixvoid
adrixvoid / yesterday_stock.js
Created December 6, 2017 02:56
// Suppose we could access yesterday's stock prices as an array, where: // The indices are the time in minutes past trade opening time, which was 9:30am local time. The values are the price in dollars of Apple stock at that time. // So if the stock cost $500 at 10:30am, stockPricesYesterday[60] = 500. // Write an efficient function that takes st…
// Suppose we could access yesterday's stock prices as an array, where:
// The indices are the time in minutes past trade opening time, which was 9:30am local time. The values are the price in dollars of Apple stock at that time.
// So if the stock cost $500 at 10:30am, stockPricesYesterday[60] = 500.
// Write an efficient function that takes stockPricesYesterday and returns the best profit I could have made from 1 purchase and 1 sale of 1 Apple stock yesterday.
// The expected format is:
// 6 (buying for $5 and selling for $11)
function utcTime(date) {
try {
if (date instanceof Date) {
@adrixvoid
adrixvoid / DIFF.md
Last active December 17, 2017 02:19
GIT DIFF

Diff

git diff HEAD > diff/"fileName".diff

Diff Commited

git show HEAD > diff/"fileName".diff