We have moved: https://github.com/magnetikonline/linuxmicrosoftievirtualmachines
Due to the popularity of this Gist, and the work in keeping it updated via a Gist, all future updates will take place at the above location. Thanks!
export function ArraySortBy <T> (array: T[], getProperty: (value: T) => any): T[] { | |
return array.sort((a, b) => { | |
let aValue: any = getProperty(a), | |
bValue: any = getProperty(b); | |
if (aValue === undefined || bValue === undefined) { | |
return 0; | |
} | |
return (aValue > bValue ) ? 1 : ((bValue > aValue) ? -1 : 0); |
96: FBProfileSetEventsCalendarSubscriptionStatusMutationOptimisticPayloadFactoryProtocol-Protocol.h | |
95: FBGroupUpdateRequestToJoinSubscriptionLevelMutationOptimisticPayloadFactoryProtocol-Protocol.h | |
94: FBEventUpdateNotificationSubscriptionLevelMutationOptimisticPayloadFactoryProtocol-Protocol.h | |
93: FBReactionUnitUserSettingsDisableUnitTypeMutationOptimisticPayloadFactoryProtocol-Protocol.h | |
93: FBMemReactionAcornSportsContentSettingsSetShouldNotPushNotificationsResponsePayloadBuilder.h | |
92: FBReactionUnitUserSettingsEnableUnitTypeMutationOptimisticPayloadFactoryProtocol-Protocol.h | |
91: FBProfileUpdateSecondarySubscribeStatusMutationOptimisticPayloadFactoryProtocol-Protocol.h | |
91: FBViewerNotificationsUpdateAllSeenStateMutationOptimisticPayloadFactoryProtocol-Protocol.h | |
90: FBMemReactionAcornSportsContentSettingsSetShouldPushNotificationsResponsePayloadBuilder.h | |
89: FBMemReactionAcornTvContentSettingsSetShouldNotPushNotificationsResponsePayloadBuilder.h |
var oldJQueryEventTrigger = jQuery.event.trigger; | |
jQuery.event.trigger = function( event, data, elem, onlyHandlers ) { | |
console.log( event, data, elem, onlyHandlers ); | |
oldJQueryEventTrigger( event, data, elem, onlyHandlers ); | |
} |
We have moved: https://github.com/magnetikonline/linuxmicrosoftievirtualmachines
Due to the popularity of this Gist, and the work in keeping it updated via a Gist, all future updates will take place at the above location. Thanks!
segmentLengthBound = ... // B, originally set to s.length/2 | |
counter = {} // o | |
bestSavings = 0 // M | |
maxRepetitions = 0 // N | |
bestSegment = 0 // e | |
longestSegmentLength = 0 // Z | |
segmentLength = 0 // t | |
while (segmentLength <= segmentLengthBound) { | |
start = 1; |