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
| #include <stdbool.h> | |
| #include <string.h> | |
| #include <stdio.h> | |
| #include <assert.h> | |
| #include <pthread.h> | |
| #include <unistd.h> | |
| #include <errno.h> | |
| #include <time.h> | |
| #include <stdlib.h> |
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
| typedef void* sema_handle; | |
| typedef void (*queueentry_callback)(void*); | |
| typedef struct queueentry queueentry; | |
| struct queueentry { | |
| queueentry_callback Callback; | |
| void* userdata; | |
| }; |
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
| package ru.sergey_kurochkin.navigationcompose | |
| import android.app.PendingIntent | |
| import android.content.Intent | |
| import android.os.Bundle | |
| import androidx.activity.ComponentActivity | |
| import androidx.activity.compose.setContent | |
| import androidx.compose.foundation.background | |
| import androidx.compose.foundation.layout.Box | |
| import androidx.compose.foundation.layout.fillMaxSize |
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 { Navigation } from 'react-native-navigation'; | |
| function start() { | |
| doSomeStuff(); | |
| Navigation.startTabBasedApp({/* tabs */}); | |
| } | |
| start(); |
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
| ; QUEUES | |
| (define (front-ptr queue) (car queue)) | |
| (define (rear-ptr queue) (cdr queue)) | |
| (define (set-front-ptr! queue item) (set-car! queue item)) | |
| (define (set-rear-ptr! queue item) (set-cdr! queue item)) |
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
| (define (count-change amount) | |
| (cc amount 5)) | |
| (define (cc amount kinds-of-coins) | |
| (cond ((= amount 0) 1) | |
| ((or (< amount 0) (= kinds-of-coins 0)) 0) | |
| (else (+ (cc amount | |
| (- kinds-of-coins 1)) | |
| (cc (- amount (first-denomination kinds-of-coins)) | |
| kinds-of-coins))))) |
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
| (+ 1 2 3) |
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
| const { parse, visit, print, Kind, BREAK } = require('graphql/language'); | |
| const { buildASTSchema } = require('graphql/utilities'); | |
| const { addResolveFunctionsToSchema } = require('graphql-tools'); | |
| const Sequelize = require('sequelize'); | |
| const { graphql } = require('graphql'); | |
| const jexl = require('jexl'); | |
| const deepAssign = require('deep-assign'); | |
| const { resolver: sequelizeResolver } = require('graphql-sequelize'); | |
| const { inspect } = require('util'); |
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
| require 'find' | |
| require 'fileutils' | |
| require 'tmpdir' | |
| def createAssetCatalogFile() | |
| message = ' | |
| Creating Asset Catalogs file ...' | |
| puts message |
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
| package funsets | |
| /** | |
| * 2. Purely Functional Sets. | |
| */ | |
| object FunSets { | |
| /** | |
| * We represent a set by its characteristic function, i.e. | |
| * its `contains` predicate. |
NewerOlder