This file contains 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
[Desktop Entry] | |
Name=Eclipse | |
Type=Application | |
Exec=env UBUNTU_MENUPROXY=0 /opt/eclipse/eclipse | |
Terminal=false | |
Icon=/opt/eclipse/icon.xpm | |
Comment=Integrated Development Environment | |
NoDisplay=false | |
Categories=Development;IDE |
This file contains 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
[Desktop Entry] | |
Version=2 | |
Name=Sublime Text | |
Comment=Sublime Text is a sophisticated text editor for code, markup and prose. | |
Exec=/usr/bin/sublime_text %f | |
Icon=/opt/sublime_text/Icon/128x128/sublime_text.png | |
Terminal=false | |
Type=Application | |
Categories=Development;IDE | |
X-Ayatana-Desktop-Shortcuts=NewWindow |
This file contains 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
# Resize to width if larger renaming for 001.jpg to 999.jpg standard. | |
convert *.jpeg -resize 82\> -scene 001 ../ed140/pageflipdata/pages/thumbnails/%03d.jpg | |
convert *.jpeg -resize 750\> -scene 001 ../ed140/pageflipdata/pages/%03d.jpg |
This file contains 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
# Rename 1.jpg to 001.jpg | |
rename 's/\d+/sprintf("%03d",$&)/e' * |
This file contains 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 | |
$get = 'http://www.behance.net/v2/users/luizcanet/projects?api_key=4p1K31fR0mB3h4Nc3Th1Sd0NtW0rKs'; | |
$portifolio = json_decode(file_get_contents($get)); | |
?> | |
<?php if ($portifolio->http_code = 200) : ?> | |
<?php foreach ($portifolio->projects as $project) : ?> | |
<article class="project"> | |
<a href="<?php print $project->url; ?>" target="_blank"> | |
<h1><?php print $project->name; ?></h1> | |
<img src="<?php print $project->covers->{404}; ?>" alt="Project Image" /> |
This file contains 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
server { | |
listen 80; # redundant in new nginx versions | |
server_name yourserver.com www.yourserver.com; | |
root /usr/share/nginx/www/drupal; | |
access_log off; | |
fastcgi_param SCRIPT_NAME $fastcgi_script_name; | |
location ~ \..*/.*\.php$ { | |
return 403; |
This file contains 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
server { | |
server_name [[DOMAIN]]; ## Ex.: example.com www.example.com | |
root [[ROOT_PATH]]; ## <-- Your only path reference. Ex. : /var/www/drupal8 | |
location = /favicon.ico { | |
log_not_found off; | |
access_log off; | |
} | |
location = /robots.txt { |
This file contains 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
FROM debian | |
MAINTAINER Luiz Henrique Canet Filho <luiz.henrique@fisqua.com> | |
RUN apt-get update && apt-get upgrade -y | |
RUN export DEBIAN_FRONTEND=noninteractive && apt-get update && apt-get install -y vim curl git exim4 nginx mariadb-server php5-fpm php5-mysql php5-gd php5-curl libssh2-php | |
RUN curl -sS https://getcomposer.org/installer | php | |
RUN mv composer.phar /usr/local/bin/composer | |
RUN curl https://gist.githubusercontent.com/luizcanet/145cf37f5043cd78e244/raw/0875197f0d69235ba47256466980315facd92529/nginx-drupal8 > /etc/nginx/sites-available/drupal8-template | |
RUN apt-get update && apt-get install -y php5-dev | |
RUN composer global require twig/twig:~1.0 | |
RUN cd ~/.composer/vendor/twig/twig/ext/twig && phpize && ./configure && make && make install |
This file contains 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
/* bling.js */ | |
window.$ = document.querySelectorAll.bind(document); | |
Node.prototype.on = window.on = function (name, fn) { | |
this.addEventListener(name, fn); | |
} | |
NodeList.prototype.__proto__ = Array.prototype; |
This file contains 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
<div class="carousel"> | |
<div class="carousel__container"> | |
<div class="carousel__wrapper"> | |
<div class="carousel__item"></div> | |
<div class="carousel__item"></div> | |
<div class="carousel__item"></div> | |
<div class="carousel__item"></div> | |
<div class="carousel__item"></div> | |
</div> | |
</div> |
OlderNewer