Skip to content

Instantly share code, notes, and snippets.

View kdastan's full-sized avatar
☄️
Comet

kumardastan kdastan

☄️
Comet
  • SCOPE.GG
  • Almaty, Kazakhstan
View GitHub Profile
@kdastan
kdastan / slices.md
Last active December 26, 2019 13:30
Go exercise solution on Golang tour (https://tour.golang.org/moretypes/18)

Implement Pic. It should return a slice of length dy, each element of which is a slice of dx 8-bit unsigned integers. When you run the program, it will display your picture, interpreting the integers as grayscale (well, bluescale) values.

The choice of image is up to you. Interesting functions include (x+y)/2, x*y, and x^y.

(You need to use a loop to allocate each []uint8 inside the [][]uint8.)

(Use uint8(intValue) to convert between types.)

package main
@kdastan
kdastan / privacy-policy.md
Last active June 6, 2019 08:21
SDU Alumni App

Privacy Policy

http://elefanto.kz built the SDU Alumni App app as a Free app. This SERVICE is provided by http://elefanto.kz at no cost and is intended for use as is.

This page is used to inform visitors regarding our policies with the collection, use, and disclosure of Personal Information if anyone decided to use our Service.

If you choose to use our Service, then you agree to the collection and use of information in relation to this policy. The Personal Information that we collect is used for providing and improving the Service. We will not use or share your information with anyone except as described in this Privacy Policy.

The terms used in this Privacy Policy have the same meanings as in our Terms and Conditions, which is accessible at SDU Alumni App unless otherwise defined in this Privacy Policy.

import React from 'react';
import { StyleSheet, Text, View, Button, Alert, Image } from 'react-native';
import { ImagePicker, Permissions } from 'expo';
import firebase from 'firebase';
import ApiKey from './constants/apiKeys'
export default class App extends React.Component {
state = {
url: 'https://facebook.github.io/react-native/docs/assets/favicon.png'
}
@kdastan
kdastan / README.md
Last active February 5, 2019 09:20
List of dependencies required for installation to work with the React Native on Mac computers.

soon will be here instructions

@kdastan
kdastan / counter
Created June 25, 2018 10:05
counter example
<div id="root"></div>
<script src="https://unpkg.com/react@16/umd/react.development.js"></script>
<script src="https://unpkg.com/react-dom@16/umd/react-dom.development.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/babel-standalone/6.26.0/babel.min.js"></script>
<script type="text/babel">
const rootElement = document.getElementById('root');
class App extends React.Component {
state = {
counter: 0
<div id="root"></div>
<script src="https://unpkg.com/react@16/umd/react.development.js"></script>
<script src="https://unpkg.com/react-dom@16/umd/react-dom.development.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/babel-standalone/6.26.0/babel.min.js"></script>
<script type="text/babel">
const rootElement = document.getElementById('root');
const arr = ['todo1', 'todo2']
const renderItems = () => {
@kdastan
kdastan / Task.md
Created May 21, 2018 13:35
Task - ToDo

Task - ToDo

  • Create List and Detail views for ToDos
  • It should use React Native
  • It should use React Navigation
  • It should use Redux or Mobx
  • It should be open sourced on your GitHub repo

Extras