This file contains hidden or 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
| from datetime import datetime, timedelta | |
| google_diff = datetime(2013, 7, 7) - datetime(2012, 7, 8) + timedelta(1) | |
| google_years = google_diff.days / 365 | |
| # vingle | |
| vingle_diff = datetime(2018, 5, 27) - datetime(2016, 3, 2) + timedelta(1) | |
| vingle_years = vingle_diff.days / 365 |
This file contains hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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: |
NewerOlder