- Autor: Patrick Maciel
- Site: http://www.patrickmaciel.com
- E-mail: patrickmaciel.info@gmail.com (skype/msn/qualquer outro messenger)
- Twitter: @p4dev
- Google+: http://plus.google.com/+PatrickMacielCampos
- Facebook: ...
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
| wget https://aur.archlinux.org/packages/sp/spotify/spotify.tar.gz && tar -zxvf spotify.tar.gz && cd spotify && makepkg -s | |
| pacman -U spotify<TAB><ENTER> |
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
| function git_checkout_match_generator(text, first, last) | |
| found_matches = false; | |
| if rl_state.line_buffer:find("^git checkout ") then | |
| has_start_branch = not rl_state.line_buffer:find("^git checkout[ ]*$") | |
| for line in io.popen("git branch 2>nul"):lines() do | |
| local m = line:match("[%* ] (.+)$") | |
| if m then | |
| if not has_start_branch then | |
| clink.add_match(m) |
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
| /** | |
| * A sloppy example on JavaScript curry function | |
| * | |
| * @author Vladimir Ivic <mancmelou@icloud.com> | |
| * @github http://github.com/mancmelou | |
| */ | |
| /** | |
| * Here we are, the curried function definition | |
| */ |
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 gulp = require('gulp'), | |
| watch = require('gulp-watch'), | |
| // This will keeps pipes working after error event | |
| plumber = require('gulp-plumber'), | |
| // linting | |
| jshint = require('gulp-jshint'), | |
| stylish = require('jshint-stylish'), |
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
| <!doctype html> | |
| <html lang="en"> | |
| <head> | |
| <meta charset="UTF-8"> | |
| <title>Document</title> | |
| <style> | |
| *, | |
| *::after, | |
| *::before { | |
| box-sizing: border-box; |
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 https = require('https'), | |
| user = process.argv[2], | |
| opts = parseOpts(process.argv.slice(3)) | |
| request('/users/' + user, function (res) { | |
| if (!res.public_repos) { | |
| console.log(res.message) | |
| return | |
| } | |
| var pages = Math.ceil(res.public_repos / 100), |
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 | |
| class MagicMethodFixture { | |
| /** | |
| * @var array | |
| */ | |
| protected $configurations; | |
| public function __construct() { | |
| $this->configurations = array( |
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
| <?xml version="1.0" encoding="utf-8"?> | |
| <manifest xmlns:android="http://schemas.android.com/apk/res/android" android:installLocation="auto" package="dk.ostebaronen.wifishizniz" android:versionCode="1" android:versionName="1.0"> | |
| <uses-sdk android:targetSdkVersion="17" /> | |
| <application android:label="WiFiShizniz"></application> | |
| <uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" /> | |
| <uses-permission android:name="android.permission.ACCESS_WIFI_STATE" /> | |
| <uses-permission android:name="android.permission.CHANGE_WIFI_STATE" /> | |
| </manifest> |