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 | |
/** | |
* Auto Fit Text To Image | |
* | |
* Write text to image using a target width, height, and starting font size. | |
* | |
* @author Clif Griffin | |
* @url http://cgd.io/2014/auto-fit-text-to-an-image-with-php-and-wordpress | |
* |
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
<script type="text/javascript"> | |
function closePrint () { | |
document.body.removeChild(this.__container__); | |
} | |
function setPrint () { | |
this.contentWindow.__container__ = this; | |
this.contentWindow.onbeforeunload = closePrint; | |
this.contentWindow.onafterprint = closePrint; | |
this.contentWindow.focus(); // Required for IE |
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
# queue.rb | |
# | |
# Using array as queue | |
# | |
# Combine use of push and shift | |
# | |
# =OUTPUT= | |
# | |
# $ ruby1.9.1 queue.rb | |
# ["one", "two", "three"] |
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
{"traceEvents":[{"pid":2460,"tid":2490,"ts":121298953076,"ph":"X","cat":"toplevel","name":"ThreadController::Task","dur":4,"tdur":3,"tts":205,"args":{"src_file":"../../base/task/sequence_manager/task_queue_impl.cc","src_func":"PushOntoDelayedIncomingQueue"}},{"pid":2460,"tid":2490,"ts":121298953075,"ph":"X","cat":"disabled-by-default-devtools.timeline","name":"RunTask","dur":22,"tdur":21,"tts":204,"args":{}},{"pid":2460,"tid":2490,"ts":121298953010,"ph":"X","cat":"toplevel","name":"ThreadControllerImpl::RunTask","dur":89,"tdur":86,"tts":142,"args":{}},{"pid":2460,"tid":2490,"ts":121298953101,"ph":"X","cat":"toplevel","name":"ThreadControllerImpl::RunTask","dur":1,"tdur":0,"tts":230,"args":{}},{"pid":2460,"tid":2490,"ts":121299954136,"ph":"X","cat":"toplevel","name":"ThreadController::Task","dur":11,"tdur":11,"tts":265,"args":{"src_file":"../../base/task/thread_pool/delayed_task_manager.cc","src_func":"ScheduleProcessRipeTasksOnServiceThread"}},{"pid":2460,"tid":2490,"ts":121299954135,"ph":"X","cat":"disabled- |
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
Obj1: | |
- Obj21 | |
- Obj22 | |
- Obj23 | |
- Obj24 | |
- Obj25 |
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 | |
if [ $# -eq 0 ] | |
then | |
echo "Usage: $0 filename.xls (where the xls is exported from ING direct website)" | |
exit 1; | |
fi | |
result=$(echo $1 | cut -d . -f1); | |
result+=".csv"; |
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 test() { | |
var otherArgs = Array.prototype.slice.call(arguments, 1); | |
console.log(otherArgs); | |
} | |
console.log('test()'); | |
test(); | |
console.log('test(1)'); | |
test(1); |
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
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta charset=utf-8 /> | |
<title>JS Bin</title> | |
<style> | |
#box { | |
background-color: #369; | |
height: 100px; |
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
config.vm.customize ["setextradata", :id, "VBoxInternal2/SharedFoldersEnableSymlinksCreate/SHARE_NAME", "1"] |
NewerOlder