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.writeCheckbox = function(id,value){ | |
var doCheck = true; | |
var isChecked = false; | |
var selector = '#' + id; | |
if(value == 0 || value == '' || value == undefined){ | |
doCheck = false; | |
} | |
isChecked = $(selector).parent().children("span").hasClass("checked"); |
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> | |
<title>SVG > Canvas</title> | |
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> | |
<script src="http://code.jquery.com/jquery-1.11.0.min.js"></script> | |
<script type="text/javascript" src="http://canvg.googlecode.com/svn/trunk/canvg.js"></script> |
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
<!-- you too can export dygraphs http://dygraphs.com/ | |
as pngs by using this awesome library http://cavorite.com/labs/js/dygraphs-export/ --> | |
<html> | |
<head> | |
<script type="text/javascript" src="//code.jquery.com/jquery-1.11.0.min.js"></script> | |
<script type="text/javascript" src="//dygraphs.com/dygraph-combined.js"></script> | |
<script type="text/javascript" src="dygraph-extra.js"></script> | |
</head> | |
<body> | |
<div id="graphdiv" style="width:500px; height:300px;"></div> |
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
<cfset value = '' /> | |
<cfthread name="aThread" action="run"> | |
<cfset value = objectInstance.method(anArgument) /> | |
</cfthread> | |
<cfset sleep(5000) /><!--- wait for a bit (give the thead a chance to complete) ---> | |
<cfif ((aThread.Status IS "RUNNING") || (aThread.Status IS "NOT_STARTED"))><!--- if the thread is not done, kill it ---> | |
<cfthread action="terminate" name="aThread" /> | |
<cfset sleep(500) /><!--- sleep for a bit to properly terminate the thread ---> |
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
if(typeof console == "undefined") { // for ticket 484 | |
this.console = {log: function() {}}; | |
} |
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 lang="en"> | |
<head> | |
<meta charset="utf-8"> | |
</head> | |
<body> | |
<ul id="theul"><li>sweet child of theul</li></ul> | |
<div id="thediv">thediv</div> |
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
.overlay { | |
background-color:white; | |
filter:alpha(opacity=50); /* IE */ | |
opacity:0.5; /* Safari, Opera */ | |
-moz-opacity:0.50; /* FireFox */ | |
z-index:20; | |
height:100%; | |
width:100%; | |
background-repeat:no-repeat; | |
background-position:center; |
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
DECLARE @name VARCHAR(50) -- database name | |
DECLARE @path VARCHAR(256) -- path for backup files | |
DECLARE @fileName VARCHAR(256) -- filename for backup | |
DECLARE @fileDate VARCHAR(20) -- used for file name | |
-- specify database backup directory (create this path if it does not exist) | |
SET @path = 'C:\SQL Server Data\Backup\' | |
-- specify filename format |
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
module FancyModule | |
extend ActiveSupport::Concern | |
included do | |
after_save :do_that_thing | |
end | |
def do_that_thing | |
#thing goes here | |
end |
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
Getting Started with Minecraft Mods | |
What is a mod? | |
Most mods add content to the game to alter gameplay, change the creative feel, or give the player | |
more options in how they interact with the Minecraft world. Most people who mod Minecraft | |
(known as modders) use Minecraft Coder Pack and either ModLoader or Minecraft Forge to do so. | |
Types of mods |
OlderNewer