As a freelancer, I build a lot of web sites. That's a lot of code changes to track. Thankfully, a Git-enabled workflow with proper branching makes short work of project tracking. I can easily see development features in branches as well as a snapshot of the sites' production code. A nice addition to that workflow is that ability to use Git to push updates to any of the various sites I work on while committing changes.
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
<div class="container"> | |
<div class="text"></div> | |
</div> |
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
<img src="https://ik.imagekit.io/demo/img/image1.jpeg?tr=w-400,h-300" /> | |
<img src="https://ik.imagekit.io/demo/img/image2.jpeg?tr=w-400,h-300" /> | |
<img src="https://ik.imagekit.io/demo/img/image3.jpg?tr=w-400,h-300" /> | |
<img class="lazy" data-src="https://ik.imagekit.io/demo/img/image4.jpeg?tr=w-400,h-300" /> | |
<img class="lazy" data-src="https://ik.imagekit.io/demo/img/image5.jpeg?tr=w-400,h-300" /> | |
<img class="lazy" data-src="https://ik.imagekit.io/demo/img/image6.jpeg?tr=w-400,h-300" /> | |
<img class="lazy" data-src="https://ik.imagekit.io/demo/img/image7.jpeg?tr=w-400,h-300" /> | |
<img class="lazy" data-src="https://ik.imagekit.io/demo/img/image8.jpeg?tr=w-400,h-300" /> | |
<img class="lazy" data-src="https://ik.imagekit.io/demo/img/image9.jpeg?tr=w-400,h-300" /> | |
<img class="lazy" data-src="https://ik.imagekit.io/demo/img/image10.jpeg?tr=w-400,h-300" /> |
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 | |
# Copyright 2017 Google Inc. | |
# | |
# Licensed under the Apache License, Version 2.0 (the "License"); | |
# you may not use this file except in compliance with the License. | |
# You may obtain a copy of the License at | |
# | |
# http://www.apache.org/licenses/LICENSE-2.0 | |
# | |
# Unless required by applicable law or agreed to in writing, software |
Date Completed: Not done yet ~~ April 23rd 2015
- Video Card: Nvidia GTX 465 (lol right? Game runs shitty)
- Driver: tested on 331.38, works on 331.38+
- OS: Ubuntu x64 14.04
- POL: I used Play on linux 4, I assume most of the capabilities are in winetricks
- Wine: wine-staging Sun, 19 Apr 2015 version 1.7.41 x64 bit
Apple has been creating some amazing scrolling video sites lately and I've been trying to create a simplified plugin to recreate this effect. This is the alpha version of this plugin. You can see an example of the effect I'm recreating here: http://www.apple.com/macbook/
This uses requestAnimationFrame and allows you to create multiple custom scrolling videos easily.
A Pen by Mark Teater on CodePen.
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 | |
//server-side code where we save the given drawing in a PNG file | |
$img = filter_input(INPUT_POST, 'image', FILTER_SANITIZE_URL); | |
$name = filter_input(INPUT_POST, 'name', FILTER_SANITIZE_STRING); | |
//see http://j-query.blogspot.fr/2011/02/save-base64-encoded-canvas-image-to-png.html | |
$img = str_replace(' ', '+', str_replace('data:image/png;base64,', '', $img)); | |
$data = base64_decode($img); |
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 | |
$urls = array(); | |
$videos = array(); | |
// vimeo test | |
$urls[] = 'http://vimeo.com/6271487'; | |
$urls[] = 'http://vimeo.com/68546202'; | |
// youtube test |
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 | |
/** | |
* File: SimpleImage.php | |
* Author: Simon Jarvis | |
* Modified by: Miguel Fermín | |
* Based in: http://www.white-hat-web-design.co.uk/articles/php-image-resizing.php | |
* | |
* 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 2 |