You can’t clone a Bitbucket repo using GithHub Desktop directly. Instead you would have to:
- Clone the Bitbucket repo locally via command line.
- Add the cloned repository to your GitHub Desktop app.
You can’t clone a Bitbucket repo using GithHub Desktop directly. Instead you would have to:
| // go on you labels pages | |
| // eg https://github.com/cssnext/cssnext/labels | |
| // paste this script in your console | |
| // copy the output and now you can import it using https://github.com/popomore/github-labels ! | |
| var labels = []; | |
| [].slice.call(document.querySelectorAll(".label-link")) | |
| .forEach(function(element) { | |
| labels.push({ | |
| name: element.textContent.trim(), |
| 'use strict'; | |
| module.exports = function CustomError(message, extra) { | |
| Error.captureStackTrace(this, this.constructor); | |
| this.name = this.constructor.name; | |
| this.message = message; | |
| this.extra = extra; | |
| }; | |
| require('util').inherits(module.exports, Error); |
| /************************************************** | |
| / Button: Email Affiliated Contacts / | |
| / Author: Matt Horine / | |
| / Client: Step Up to Serve / | |
| / Date: 28 January 2015 / | |
| / / | |
| / Description: Button on Affiliated Contacts / | |
| / related list to allow selection and email of / | |
| / affiliated contacts from the Account Page in / | |
| / the same way the Send an Email button allows / |
| public class FileController { | |
| @AuraEnabled | |
| public static Id saveTheFile(Id parentId, String fileName, String base64Data, String contentType) { | |
| base64Data = EncodingUtil.urlDecode(base64Data, 'UTF-8'); | |
| Attachment a = new Attachment(); | |
| a.parentId = parentId; | |
| a.Body = EncodingUtil.base64Decode(base64Data); |
| public class AutocompleteController { | |
| @AuraEnabled | |
| public static List<sObject> getSuggestions(String sObjectType, String term, String fieldsToGet, Integer limitSize) { | |
| // could add in logic to remove possible duplicate fields | |
| String fields = fieldsToGet.length() > 0 ? ',' + fieldsToGet : ''; | |
| String soql = | |
| ' SELECT Name, Id ' + String.escapeSingleQuotes(fields) + | |
| ' FROM ' + String.escapeSingleQuotes(sObjectType) + | |
| ' WHERE Name Like \'' + String.escapeSingleQuotes(term) + '%\'' + |
| @RestResource(urlMapping='/v1.0/messages') | |
| global class MessageService { | |
| @HttpGet | |
| global static void getMessages() { | |
| // buildMessages gets FeedItems | |
| List<Message> messages = buildMessages(); | |
| RestResponse res = RestContext.response; |
| // Q sample by Jeff Cogswell | |
| /*=========== | |
| We want to call these three functions in sequence, one after the other: | |
| First we want to call one, which initiates an ajax call. Once that | |
| ajax call is complete, we want to call two. Once two's ajax call is | |
| complete, we want to call three. | |
| BUT, we don't want to just call our three functions in sequence, as this quick |
| public with sharing class ChatterUtils { | |
| // makes a simple chatter text post to the specified user from the running user | |
| public static void simpleTextPost(Id userId, String postText) { | |
| ConnectApi.FeedType feedType = ConnectApi.FeedType.UserProfile; | |
| ConnectApi.MessageBodyInput messageInput = new ConnectApi.MessageBodyInput(); | |
| messageInput.messageSegments = new List<ConnectApi.MessageSegmentInput>(); | |
| <apex:page standardcontroller="Account" extensions="ChatterAccountSnapshotExt"> | |
| <apex:form > | |
| <apex:pageMessages /> | |
| <apex:pageBlock title="Service Snapshot"> | |
| <apex:pageBlockButtons location="bottom"> | |
| <apex:commandButton value="Post to Feed" action="{!post}" /> | |
| </apex:pageBlockButtons> | |
| <apex:pageBlockSection columns="1"> | |
| <apex:pageBlockSectionItem > | |
| <apex:outputLabel value="Closed Cases" /> |