fetch('/things/10', {
credentials: 'same-origin',
headers: {
'accept': 'application/json'
}
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
# some more ls aliases | |
alias sou='source .bashrc' | |
alias profile='sudo nano .bashrc' | |
alias gitk='gitk 2>/dev/null' | |
alias gk='gitk --all 2> /dev/null &' |
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
git config --global alias.bra '!git branch --all' | |
git config --global alias.mylog '!git log --author="$(git config user.name)" --pretty=format:"%h - %an, %ar : %s" --author="$(git config user.name)" --pretty=format:"%h - %an, %ar : %s" |
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
# ~/.gitconfig | |
# https://gist.github.com/codexico/2a34c0d599f3af93b46f | |
[alias] | |
# Retorna todos os alias desta lista | |
alias = !git config --list | grep 'alias\\.' | sed 's/alias\\.\\([^=]*\\)=\\(.*\\)/\\1\\\t\\2/' | sort; | |
# Retorna o caminho do repositório | |
url = remote -v; |
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
#! /usr/bin/env python | |
"""Fix ugly file names to be UNIX shell-friendly. | |
PROBLEM | |
======= | |
You have files named with funky characters lying around in your | |
filesystem. Ugly files like "My Document #3 - (2005)[1].txt" are | |
common when you're sharing directories with Windows users, but you |
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/bash | |
# em /usr/local/bin/ | |
CURRENT=`pwd` | |
DIR=`basename $CURRENT` | |
echo " " | |
echo "html1 [branch] Clona um branch específico sem criar um repositório." | |
echo " " | |
echo " Ver lista de branchs em https://github.com/mateusreis/small.git" |
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
<snippet> | |
<content><![CDATA[ | |
<html> | |
<head> | |
<title></title> | |
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"> | |
<style type="text/css"> | |
/********************************************************************* | |
* css | |
*********************************************************************/ |
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/bash | |
# Updated: Wed Apr 10 21:04:12 2013 by webmaster@askapache | |
# @ http://uploads.askapache.com/2013/04/gnu-mirror-index-creator.txt | |
# Copyright (C) 2013 Free Software Foundation, Inc. | |
# | |
# This program is free software: you can redistribute it and/or modify | |
# it under the terms of the GNU General Public License as published by | |
# the Free Software Foundation, either version 3 of the License, or | |
# (at your option) any later version. | |
# |
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
@mixin gradient($from, $to) { | |
/* fallback/image non-cover color */ | |
background-color: $from; | |
/* Firefox 3.6+ */ | |
background-image: -moz-linear-gradient($from, $to); | |
/* Safari 4+, Chrome 1+ */ | |
background-image: -webkit-gradient(linear, 0% 0%, 0% 100%, from($from), to($to)); |
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
# https://github.com/guard/guard-livereload | |
guard :livereload do | |
watch(%r{.+\.(css|scss|js|htm|htm|html|php)$}) | |
end |
NewerOlder