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
import { Injectable } from '@angular/core'; | |
import { dispatch } from '@angular-redux/store'; | |
import { FluxStandardAction } from 'flux-standard-action'; | |
import { | |
MoodLogPushPayload, | |
MoodLogRemovePayload, | |
MoodLogUpdatePayload, | |
MoodLogPostPayload, | |
MoodLogDeletePayload, |
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
export interface MoodLog { | |
moodLogId?: number; | |
type: string; | |
actedAt: Date; | |
createdAt: Date; | |
} | |
export interface MoodState { | |
moodLogList: MoodLog[]; | |
} |
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
import { useTypedSelector } from '../../src/store'; | |
import { useCallback } from 'react'; | |
import { actions } from '../../src/store/reducers/counter'; | |
import { useDispatch } from 'react-redux'; | |
import { wrapWithDispatch } from '../../src/utils.ts'; | |
export default function Counter() { | |
const counterActions = naiveWrapWithDispatch(useDispatch(), actions); | |
const count = useTypedSelector(state => state.counter); |
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
import Rails from '@rails/ujs' |
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
java -cp metanome-cli-1.1.0.jar;pyro-distro-1.0-SNAPSHOT-distro.jar de.metanome.cli.App --algorithm de.hpi.isg.pyro.algorithms.Pyro --file-key inputFile --inputs e:\data\nhis\NHIS_OPEN_GJ_2002.CSV |
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
import React, { useCallback } from 'react'; | |
import { compose } from 'redux'; | |
import { connect } from 'react-redux'; | |
import { withRouter } from 'react-router'; | |
import { myActions } from './my' | |
type CounterStateProps = { | |
num: number; | |
}; | |
type CounterDispatchProps = { |
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
import org.apache.spark.sql.functions | |
type myFunctionType = (Int, Long, String) => Int | |
val myFunction: myFunctionType = (i, l, str) => i + l.toInt + Integer.parseInt(str) | |
val myUDF = functions.udf(myFunction) |
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
long a = 1; | |
long b = 2; | |
long c = a + b; | |
char x = 1; | |
char y = 2; | |
char z = x + y; |
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
; ModuleID = 'factorial.mem2reg.bc' | |
source_filename = "tests/factorial.c" | |
target datalayout = "e-m:e-i64:64-f80:128-n8:16:32:64-S128" | |
target triple = "x86_64-pc-linux-gnu" | |
@g = dso_local global i32 5, align 4 | |
; Function Attrs: noinline nounwind uwtable | |
define dso_local i32 @factorial(i32 %n) #0 { | |
entry: |
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
i = 0; | |
t3 = 0; | |
while (i < m) { | |
j = 0; | |
t2 = t3; | |
while (j < n) { | |
t1 = t3 + j; // Changed | |
temp = Base(a) + t1; | |
*(temp) = *(Base(b) + t1) + *(Base(c) + t1); | |
j += 1; |
NewerOlder