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> | |
<input type="checkbox" id="switch1" name="switch1" class="switch" /> | |
<label for="switch1">First switch</label> | |
</div> | |
<style> /* put this in buttons.scss */ | |
input.switch:empty | |
{ | |
margin-left: -999px; |
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
<select class="styled-select"> | |
<option class="red">Cooperation </option> | |
<option class="blue">Competence </option> | |
</select> | |
</p> | |
<style> | |
.styled-select { | |
font-size: 1.4em; | |
color: #DCDCDC; |
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> | |
iRock - The Virtual Pet Rock | |
</title> | |
<script type="text/javascript"> | |
var userName; |
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
/** | |
* Copyright 2012 Google Inc. All Rights Reserved. | |
* | |
* 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 |
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
<apex:page standardController="Opportunity" extensions="jquery_minihack"> | |
<style> | |
#myTitle { | |
font-size:20px; | |
text-align: center; | |
} | |
.element { | |
width:50%; |
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
http = require 'http' # Require the HTTP Core NodeJS Module (notice the lack of brackets) | |
port = process.env.PORT or 4000 # The TCP port you want to "listen" on (see line #6) allows the system (e.g. Heroku to set it or uses 4000 on local machine) | |
http.createServer (req, res) -> # Creates a basic Web Server and gives you the REQuest and RESponse objects to the function | |
res.writeHead 200 # Write the HTTP Status Code "200" ("All OK") in the RESponse to the client (browser) | |
res.end 'Hello World!' # End the RESponse with the message 'Hello World' | |
.listen port # the dot before the word listen means "Chain" to the createServer and listen on the port | |
console.log "Visit: http://localhost:#{port}" # console.log allows you to write a "Note-to-self" on the command line. | |
### if any of the above is unclear, Google it! (or msg me for a personal Tutorial: https://twitter.com/nelsonic) ### |
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
/** | |
* @author Nimil Christopher | |
* @date 12 April 2013 | |
* @description This class has the Rest Callouts to publish an application to | |
* the CDN | |
*/ | |
public with sharing class HTTPHelper { | |
public static Http http; | |
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
<html> | |
<h1>Sort</h1> | |
<!-- enable the Chrome Developer Console to see Results --> | |
<script> | |
str = 'X,a,A,C,D,F,1,c,4,3' | |
data = str.split(',') | |
console.dir(data) | |
counter = 0; | |
limit = data.length; | |
end = limit-1; |