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!
| const version = process.argv[3]; | |
| const edition = process.argv[4] === 'oss' ? 'oss' : 'ee'; | |
| const [major, minor] = version.split('.'); | |
| const jarName = `metabase-${edition}-${version}.jar`; | |
| const fileExists = fs.existsSync(jarName); | |
| if (!fileExists) { |
| 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; |