- nylas/N1 💌 An extensible desktop mail app built on the modern web.
- black-screen/black-screen A terminal emulator for the 21st century.
- shockone/black-screen A terminal emulator for the 21st century.
- ptmt/react-native-macos React Native for macOS
- docker/kitematic Visual Docker Container Management on Mac & Windows
- kitematic/kitematic Visual Docker Container Management on Mac & Windows
- davezuko/wirk-starter Get started with React, Redux, and React-Router!
- TelescopeJS/Telescope 🔭 An open-source social news app built with Meteor & React
- coryhouse/react-slingshot React + Redux starter kit / boile
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
| Collection of oneliner music formulas. Version 2011-10-18 | |
| I've tried to collect all the formulas in the related threads etc. | |
| (excluding those that clearly sound like random first experiments or total | |
| crap; when several variants are available, i've chosen the shortest one) | |
| If you think I've missed something that should be here, please let me know. | |
| ====== 1ST ITERATION ====== |
Hey hey people, Mark here, and today I wanted to share with you a very small library for js13k games called natlib. It consists of (refactored and improved!) parts lifted from my previous years' js13k submissions, some of those were in top-20 or something.
Included in this version are:
-
Fixed-step mainloop code that I use everywhere
- Decouples world updates from rendering
- Prevents floating-point error accumulation
- Interpolate between the previous and the current state for smooth animation, especially noticeable when the rendering performance is low or inconsistent.
-
Mulberry32, a great little 32-bit PRNG
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 functools import partial, wraps | |
| def power_tail(x, a, n): | |
| assert n >= 0 | |
| if n == 0: | |
| return x | |
| elif n & 1: | |
| return partial(power_tail, x * a, a, n - 1) | |
| else: | |
| return partial(power_tail, x, a * a, n >> 1) |
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
| 'use strict' | |
| // The following table has 6 connected regions: | |
| const tab = ` | |
| 111100000000000000000 | |
| 111000000001110011000 | |
| 110000000000011111100 | |
| 000000000111111100000 | |
| 110000011111000000000 |
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
| 'use strict' | |
| const assert = require('assert').strict | |
| /** | |
| * Write a program that outputs all possibilities to put + or - or nothing | |
| * between the numbers 1, 2, ..., 9 (in this order) such that the result | |
| * equals 100. For example: 1 + 2 + 34 – 5 + 67 – 8 + 9 = 100. | |
| */ |
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
| 'use strict' | |
| /** | |
| * Write a function that given a list of non negative integers, | |
| * arranges them such that they form the largest possible number. | |
| * For example, given [50, 2, 1, 9], the largest formed number is 95021. | |
| */ | |
| /* 1. Straightforward solution: get all permutations of numbers. | |
| * Then find the largest of those. |
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
| 'use strict' | |
| // Take a valid octet from a string. Octet can be 1-3 characters | |
| function takeOctet(octets, string) { | |
| // If we have 4 octets, and nothing is left on the string, we're done | |
| if (octets.length === 4) { | |
| if (string.length === 0) { | |
| console.log(`${octets[0]}.${octets[1]}.${octets[2]}.${octets[3]}`) | |
| } | |
| // Return anyway |
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
| <!doctype html> | |
| <html lang="en"> | |
| <head> | |
| <meta charset="utf8"> | |
| <title>Crows peck at your crops, Giuseppe!</title> | |
| <style> | |
| #thing { | |
| height: 100px; | |
| width: 100px; | |
| } |
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 from 'react' | |
| import { Form, Input } from 'antd' | |
| import lang from '../app/lang' | |
| export default Form.create({ name: 'auth' })( | |
| class AuthForm extends React.Component { | |
| render() { | |
| const { getFieldDecorator } = this.props.form |
NewerOlder