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
// Use Gists to store code you would like to remember later on | |
console.log(window); // log the "window" object to the console |
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
/** | |
* @description Extend a queueable job to complete the merge request from the page | |
* | |
* | |
*/ | |
public class QueueJob implements Queueable, Database.AllowsCallouts { | |
public class QueueJobException extends Exception {} | |
public QueueJob ( ) { |
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
//sign(), download(), processCommand() part of AsposeService.cls | |
public static String generateJunkDataXML (Integer rows, Integer columns) { | |
//String xmlString = '<ImportStringArrayOption><DestinationWorksheet>Sheet1</DestinationWorksheet><FirstRow>1</FirstRow><FirstColumn>1</FirstColumn><IsInsert>true</IsInsert><IsVertical>true</IsVertical><Data>'; | |
String xmlString = '<ImportBatchDataOption><DestinationWorksheet>Sheet1</DestinationWorksheet><ArrayOfCellValue>' ; | |
for ( Integer row =1;row< rows; row++) { | |
//xmlString += '<ImportStringArrayOption><DestinationWorksheet>Sheet1</DestinationWorksheet><FirstRow>1</FirstRow><FirstColumn>'+row+'</FirstColumn><IsInsert>false</IsInsert><IsVertical>true</IsVertical><Data>' ; | |
for ( Integer column=1;column<columns; column++) { | |
//xmlString += '<string>something</string>' ; | |
xmlString += '<CellValue> <rowIndex>'+row+'</rowIndex> <columnIndex>'+column+'</columnIndex> |
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
/********************************************************************************** | |
* @description Kendo UI plugin for Drag Drop list | |
* @author Sunil Murali | |
* @extends Kendo UI | |
* @usage $(selector).kendoDragDropList({ | |
* options | |
* }); | |
*********************************************************************************/ | |
(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
File upload from Visual force page = 10 MB limit | |
File uplaod via SOAP API = 25MB Limit | |
SOAP API File Upload: | |
1. jquery/kendo | |
2. connection.js | |
3. FileReader [ readAsBinaryString ] |
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
================ WIP ============= | |
/** | |
* Express router needs to be defined and each file module.exports should return the router | |
*/ | |
var fs = require ('fs' ) ; | |
var _ = require ('lodash'); | |
var routes = {}; | |
/* |
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 | |
# | |
# login in the jenkins server with: | |
# | |
# heroku login | |
# heroku keys:add | |
# | |
# Doing so, jenkins will have permission to deploy to | |
# the heroku remote. | |
# |
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
{ | |
"nodes": [ | |
{ "id": "com1" , "sequence":0, "fixed": true, "x":100,"y":100 }, | |
{ "id": "com2" , "sequence":1, "fixed": true, "x":100,"y":100 }, | |
{ "id": "com3" , "sequence":1, "fixed": true, "x":100,"y":100 }, | |
{ "id": "com4" , "sequence":2, "fixed": true, "x":100,"y":100 }, | |
{ "id": "com5" , "sequence":2, "fixed": true, "x":100,"y":100 }, | |
{ "id": "com6" , "sequence":2, "fixed": true, "x":100,"y":100 } | |
], | |
"links": [ |
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
// Word cloud layout by Jason Davies, http://www.jasondavies.com/word-cloud/ | |
// Algorithm due to Jonathan Feinberg, http://static.mrfeinberg.com/bv_ch03.pdf | |
(function(exports) { | |
function cloud() { | |
var size = [256, 256], | |
text = cloudText, | |
font = cloudFont, | |
fontSize = cloudFontSize, | |
fontStyle = cloudFontNormal, | |
fontWeight = cloudFontNormal, |
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 > | |
<style> | |
.k-task { | |
background: rgba(247,198,52,1) | |
} | |
.k-task-overlap { | |
z-index:2; | |
background: rgba(247,198,52,1); | |
/* IE6-9 */ | |
} |
OlderNewer