- Copy
portfolio.htmlinto_includesfolder. - Go to your portfolio page and add
{% include portfolio.html %}where you want to show it. - Edit
projectListintoportfolio.htmlto show your projects.
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
| angular.module('ExampleModule', []) | |
| .service('ExampleService', function($http) { | |
| var base_url = "http://mywebservice.com/"; | |
| return { | |
| this.get = function() { | |
| return $http.get(base_url + "users"); | |
| } | |
| } | |
| }); |
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 python3 | |
| # -*- coding: utf-8 -*- | |
| import random | |
| words = [] | |
| passw = [] | |
| with open("words.txt", "r") as f: | |
| for l in f: |
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
| # Place the content of this script at the bottom of your ~/.bashrc file (or ~/.zshrc if you are using ZSH). | |
| # Please be ensure that your shell doesn't have any alias or plugin with the following names: ai, ar, au, af | |
| # Replace 'apt' with 'aptitude' if you want to use it instead, | |
| $PMG="apt" | |
| update() { | |
| sudo $PMG update | |
| } |
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 python3 | |
| # -*- coding: utf-8 -*- | |
| import random | |
| line = round(random.random() * 100 - 2) | |
| facts = [] | |
| with open("quotes.txt", "r") as f: |
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 | |
| ############################################ | |
| # Author: Juanjo Salvador Piedra | |
| # Website: http://juanjosalvador.es | |
| # GitHub: https://github.com/JuanjoSalvador | |
| # Twitter: @Linuxneitor | |
| # Telegram: @JuanjoSalvador | |
| ############################################ |
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
| # Author: Juanjo Salvador | |
| # Website: http://juanjosalvador.es | |
| # How to execute: | |
| # $ floodogram.sh <@user> <message> | |
| #!/bin/bash | |
| while [ 1 = 1 ]; | |
| do | |
| bin/telegram-cli -W -e "msg $1 $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
| # Utils conky config | |
| # By Juanjo Salvador (http://juanjosalvador.es) | |
| background no | |
| use_xft yes | |
| xftfont Sans:size=8 | |
| xftalpha 1 | |
| update_interval 1 | |
| total_run_times 0 | |
| own_window yes |
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 ruby | |
| resultados = ["1", "x", "2"]; | |
| 30.times do |i| | |
| i = i + 1 | |
| if (i < 10) | |
| i = "0" + i.to_s | |
| end | |
| puts "Resultado " + i.to_s + ": " + resultados[rand(3)].to_s | |
| end |
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 csv is the CSV file with headers | |
| function csvJSON(csv){ | |
| var lines=csv.split("\n"); | |
| var result = []; | |
| var headers=lines[0].split(","); | |
| for(var i = 1; i < lines.length; i++) { | |
| var obj = {}; | |
| var currentline = lines[i].split(","); | |