This file contains hidden or 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
| require 'yaml' | |
| class Watt | |
| attr_reader :range | |
| attr_reader :watts | |
| def initialize(range, watts, seconds) | |
| @range = range | |
| @watts = watts |
This file contains hidden or 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
| require 'fileutils' | |
| require_relative 'activity' | |
| require_relative 'garmin_connector' | |
| # Check for Garmin device | |
| #connector = GarminConnector.new | |
| #if !connector.garmin_connected? | |
| # puts "No Garmin device found." | |
| # exit | |
| #end |
This file contains hidden or 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
| global class autoCompleteController { | |
| @RemoteAction | |
| global static SObject[] findSObjects(string obj, string qry, string addFields) { | |
| List<String> fieldList; | |
| if (addFields != null) fieldList = addFields.split(','); | |
| Map<String, Schema.SObjectType> gd = Schema.getGlobalDescribe(); | |
| Schema.SObjectType sot = gd.get(obj); | |
| if (sot == null) { |
This file contains hidden or 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 void f() { | |
| String s = ""; | |
| } |
This file contains hidden or 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
| public async Task<IList<T>> HttpGetAsync<T>(string urlSuffix, string nodeName) | |
| { | |
| string next = null; | |
| string response = null; | |
| var records = new List<T>(); | |
| var url = Common.FormatUrl(urlSuffix, _instanceUrl, _apiVersion); | |
| try | |
| { |
This file contains hidden or 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
| Promise = require 'bluebird' | |
| module.exports = | |
| class Dog | |
| _size: null | |
| _remains: null | |
| constructor: (size) -> | |
| _size = size | |
| Promise.promisify(@) |
This file contains hidden or 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
| var React = require('react'); | |
| var Bootstrap =require('react-bootstrap'); | |
| var Navbar = Bootstrap.Navbar; | |
| var Nav = Bootstrap.Nav; | |
| var NavItem = Bootstrap.NavItem; | |
| var PageHeader = Bootstrap.PageHeader; | |
| var Header = React.createClass({ |
This file contains hidden or 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
| js/bundle.* | |
| *.log | |
| node_modules | |
| .DS_Store | |
| .tmp | |
| dist | |
| deploy/node_modules |
This file contains hidden or 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
| js/bundle.* | |
| *.log | |
| node_modules | |
| .DS_Store | |
| .tmp | |
| dist | |
| deploy/node_modules |
This file contains hidden or 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 src="https://gist.github.com/c91f042df215af310dc7.js"></script> |
OlderNewer