Experimenting with different styles for cards
This file contains 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 pygame | |
""" | |
Solution for reddit user found at: | |
https://www.reddit.com/r/pygame/comments/3uw9ja/player_jumps_but_cannot_be_seen_going_upwards/ | |
""" | |
pygame.init() | |
HEIGHT = 360 | |
WIDTH = 480 |
This file contains 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
#!/bin/python2 | |
""" | |
Simply takes a simple, insecure alphabetic phrase | |
and turns it into a useable password. | |
Use a friendly phrase you can easily remember to generate | |
a password no one can ever guess. | |
""" |
This file contains 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
<div class="user-button"> | |
<span class="user-icon"> | |
M | |
</span> | |
</div> | |
<div class="user-info"> | |
<div class="user-icon-container"> | |
<span class="user-icon"> | |
M |
This file contains 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
<div class="searchbox" onClick="onClick(event)"> | |
<input type="text" onFocus="onFocus()" onBlur="onBlur()"/> | |
<button> | |
<i class="fa fa-search" aria-hidden="true"></i> | |
</button> | |
</div> |
This file contains 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
///Singleton audio manager | |
class AudioManager{ | |
constructor(){ | |
this.sounds = {}; | |
this.queue = []; | |
this.currentlyPlaying = null; | |
this.currentAudio = null; | |
this.paused = false; | |
} |
This file contains 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
//controller function | |
function Controller($timeout){ | |
this.loadingImages = true; | |
this.allTheImagesHaveLoaded = () =>{ | |
//... | |
this.loadingImages = false; | |
}; | |
This file contains 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
Show hidden characters
{ | |
"env": { | |
"browser": true, | |
"commonjs": true, | |
"es6": true, | |
"node": true | |
}, | |
"extends": "eslint:recommended", | |
"parserOptions": { | |
"ecmaFeatures": { |
This file contains 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 $ = function(){ | |
class Container{ | |
constructor(elements){ | |
if(!(elements && elements.length)) return | |
this.elements = Array.from(elements) | |
for(let prop in elements[0]){ | |
if(typeof elements[0][prop] === 'function'){ | |
const elm = this.elements | |
this[prop] = function(){ | |
return elm.map( |
OlderNewer