Skip to content

Instantly share code, notes, and snippets.

View MariaSyed's full-sized avatar

Maria Syed MariaSyed

View GitHub Profile
@MariaSyed
MariaSyed / polygon-with-a-hole.geojson
Last active May 17, 2019 10:25 — forked from andrewharvey/polygon-with-a-hole.geojson
A GeoJSON Polygon with a hole
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@MariaSyed
MariaSyed / FormInput.js
Last active December 16, 2018 16:32
Form App
import React, { Component } from 'react'
import { TextInput, StyleSheet } from 'react-native'
class FormInput extends Component {
render() {
const { error, placeholder, ...props } = this.props
return (
<TextInput
style={[styles.input, error && styles.error]}
#include <stdio.h>
#include <string.h>
#include <stdlib.h>
char base46_map[] = {'A', 'B', 'C', 'D', 'E', 'F', 'G', 'H', 'I', 'J', 'K', 'L', 'M', 'N', 'O', 'P',
'Q', 'R', 'S', 'T', 'U', 'V', 'W', 'X', 'Y', 'Z', 'a', 'b', 'c', 'd', 'e', 'f',
'g', 'h', 'i', 'j', 'k', 'l', 'm', 'n', 'o', 'p', 'q', 'r', 's', 't', 'u', 'v',
'w', 'x', 'y', 'z', '0', '1', '2', '3', '4', '5', '6', '7', '8', '9', '+', '/'};
char* base64_decode(char* cipher) {
@MariaSyed
MariaSyed / PyGameMP3Player.py
Created April 9, 2016 18:48 — forked from juehan/PyGameMP3Player.py
MP3Player Using PyGame
'''
Created on 2012. 2. 19.
This module is for playing mp3 (limited) and wav formatted audio file
@author: John
'''
import pygame
def playsound(soundfile):
"""Play sound through default mixer channel in blocking manner.
This will load the whole sound into memory before playback
/*
* robot.js
*
* You'll need three keys in order to unlock the
* Algorithm: the red key, the green key, and the
* blue key. Unfortunately, all three of them are
* behind human-proof barriers.
*
* The plan is simple: reprogram the maintenance
* robots to grab the key and bring it through
/*******************
* intoTheWoods.js *
*******************
*
* Ah, you're out of the woods now. Or into the woods, as the
* case may be.
*
* So take a deep breath, relax, and remember what you're here
* for in the first place.
*