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
// myapp.js | |
$(function() { | |
var tabs=function(id) { | |
$(".tab").removeClass("active").filter(".tab[href*='" + id + "']").addClass("active"); | |
$(".tabview").hide().filter("#" + id).show(); | |
} | |
window.realDate=function(timestamp) { | |
var date = new Date(timestamp*1000); |
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
{ | |
"cmd": ["/usr/bin/killall love ; /Applications/love.app/Contents/MacOS/love ${project_path}"], | |
"working_dir": "${project_path}", | |
"shell": true | |
} |
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
Animation = Class { | |
init = function(self, image, pos, steps, frameDelay) | |
self.image = image | |
self.pos = pos | |
self.width = image:getWidth() | |
self.height = image:getHeight() | |
self.frames = {} | |
self.currentFrameNumber = 0 |
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
<iframe width="100%" height="350" frameborder="0" scrolling="no" marginheight="0" marginwidth="0" src="https://maps.google.com/maps?f=q&source=s_q&hl=en&geocode=&q=Sumatralaan+45,+Hilversum,+The+Netherlands&aq=0&oq=sumatralaan+45,+hilversum&sll=52.236624,5.172801&sspn=0.00636,0.012563&t=m&ie=UTF8&hq=&hnear=Sumatralaan+45,+1217+GP+Hilversum,+Noord-Holland,+The+Netherlands&ll=52.237104,5.173359&spn=0.018397,0.036478&z=14&iwloc=near&output=embed"></iframe> | |
<p><a href="https://maps.google.com/maps?f=q&source=embed&hl=en&geocode=&q=Sumatralaan+45,+Hilversum,+The+Netherlands&aq=0&oq=sumatralaan+45,+hilversum&sll=52.236624,5.172801&sspn=0.00636,0.012563&t=m&ie=UTF8&hq=&hnear=Sumatralaan+45,+1217+GP+Hilversum,+Noord-Holland,+The+Netherlands&ll=52.237104,5.173359&spn=0.018397,0.036478&z=14">Bekijk grotere kaart</a></p> |
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
local Class = require "hump.class" | |
local AStar = require "Marsgus.astar" | |
local Marsgus = {} | |
Marsgus.Tilemap = Class { | |
init = function(self, image) | |
self.tilesetBatch = love.graphics.newSpriteBatch(image, gameSettings.resolution.width / (gameSettings.tileWidth * gameSettings.zoom) * gameSettings.resolution.height / (gameSettings.tileHeight * gameSettings.zoom)) | |
self.quads = {} |
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
<h4(.*?)>|</h4>|<h2(.*?)>|</h2>|<h3>|</h3>|<p(.*?)>|</p>|<span(.*?)>|</span>|_{2,}| |class="(.*?)"|height="(.*?)"|width="(.*?)"|alt=""|target="(.*?)"|style="(.*?")|<div(.*?)>|</div>|<table(.*?)>|</table>|<tr>|</tr>|<td(.*?)>|</td(.*?)>|<tbody>|</tbody>|http://www\.cmhf\.nl |
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
#!/bin/bash | |
Curpath="`pwd`" | |
WatchEnabled=false | |
SassEnabled=false | |
JsEnabled=false | |
VersionEnabled=false | |
while [ $# -gt 0 ] | |
do |
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
$(function(){ | |
var documentHeight, | |
windowHeight, | |
creativeShipping, | |
creativeShippingBottom; | |
// Do not use $(document).height();, chrome returns wrong value | |
//documentHeight = $(document).height(); |
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
Add to something like functions.php | |
// https://www.skyverge.com/blog/down-the-rabbit-hole-wordpress-and-timezones/ | |
function wp_get_timezone_string() { | |
// if site timezone string exists, return it | |
if ( $timezone = get_option( 'timezone_string' ) ) | |
return $timezone; | |
// get UTC offset, if it isn't set then return UTC |
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
This should be a part of the Carousel app, but whatever. You'll need ExifTool and FFMPEG. | |
exiftool -all= -tagsfromfile @ -all:all -unsafe -icc_profile -overwrite_original . | |
exiftool -if 'not $datetimeoriginal' '-DateTimeOriginal=1980:01:01 00:00:00' -overwrite_original . | |
ffmpeg -i "input.avi" -metadata "ICRD=1980:01:01 00:00:00" -codec copy "output.avi" |
OlderNewer