Skip to content

Instantly share code, notes, and snippets.

View dongjinahn's full-sized avatar
💭
⛄️

Dong-jin Ahn dongjinahn

💭
⛄️
View GitHub Profile
import { Injectable } from '@angular/core';
import { dispatch } from '@angular-redux/store';
import { FluxStandardAction } from 'flux-standard-action';
import {
MoodLogPushPayload,
MoodLogRemovePayload,
MoodLogUpdatePayload,
MoodLogPostPayload,
MoodLogDeletePayload,
export interface MoodLog {
moodLogId?: number;
type: string;
actedAt: Date;
createdAt: Date;
}
export interface MoodState {
moodLogList: MoodLog[];
}
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);
import Rails from '@rails/ujs'
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
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 = {
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)
long a = 1;
long b = 2;
long c = a + b;
char x = 1;
char y = 2;
char z = x + y;
; 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:
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;