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
gulp.task('templates', function() { | |
return gulp.src(config.jade) | |
.pipe($.plumber()) | |
.pipe($.jade()) | |
.pipe($.if(isDev, $.embedlr())) | |
.pipe($.if(isDev, gulp.dest(config.tmp))) | |
.pipe($.if(isBuild, gulp.dest(config.dist))) | |
.pipe($.if(isDev, reload({stream: true}))); | |
}); |
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
gulp.task('sass', function() { | |
return gulp.src(config.sass) | |
.pipe($.plumber()) | |
.pipe($.sass()) | |
.pipe($.autoprefixer()) | |
.pipe($.if(isDev, gulp.dest(config.tmp))) | |
.pipe($.if(isBuild, $.minifyCss())) | |
.pipe($.if(isBuild, gulp.dest(config.dist))) | |
.pipe($.if(isDev, reload({stream: true}))); | |
}); |
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
var gulp = require('gulp'), | |
$ = require('gulp-load-plugins')(), | |
browserSync = require('browser-sync'), | |
reload = browserSync.reload, | |
wiredep = require('wiredep').stream, | |
lazypipe = require('lazypipe'), | |
args = require('yargs').argv, | |
config = { | |
// folders | |
app: 'app', |
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
mixin navlink(text, dest) | |
li | |
a(href=dest)= text | |
nav#mainnav | |
ul | |
+navlink("Home", "#title") | |
+navlink("About", "#about") | |
+navlink("Portfolio", "#portfolio") | |
+navlink("Contact", "#contact") |
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
this.fetch(this.store_url.href, 'app', function() { | |
var indexHtml = fs.readFileSync('app/' + store_url.hostname).toString(); | |
indexHtml = indexHtml.replace(/\/assets/g, store_url.href + "assets"); | |
fs.writeFileSync('app/index.html', indexHtml); | |
}); |
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
$.fn.typeText = (text) -> | |
for ch, i in text | |
do(ch) => | |
@queue => | |
setTimeout (=> | |
$(this).append(ch).dequeue() | |
), 100 |
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
if (Auth::attempt( array('username' => Input::get('username'), 'password' => Input::get('password')) )){ | |
return Redirect::intended('/'); | |
} else { | |
return Redirect::to('login')->withErrors(array('form' => 'Incorrect login credentials'))->withInput(); | |
} |
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
class SigninSchema(colander.MappingSchema): | |
username = colander.SchemaNode(colander.String()) | |
password = colander.SchemaNode(colander.String(), widget=widget.PasswordWidget()) | |
def validator(self, node, data): | |
user = DBSession.query(User).filter_by(username = data['username']).first() | |
if user is None: | |
self.raise_invalid('Incorrect username', node['username']) | |
if not user.check_password(data['password']): | |
self.raise_invalid('Incorrect password', node['password']) |
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
renderWrapper = (component, element) -> | |
React.render(component, element) if element |
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
["Arkham Network","Mineplex","GotPvP Network","Minetime Cloud","Mineverse","Minecraft Central","FadeCloud","MC Legends","Lichcraft","Emenbee Realms","DesiredCraft Network","Vortex Network","Uberminecraft Family","Desteria","ORIGIN","Club Obsidian","MythCraft Network","CycloneNetwork","FearPvP","KoonKraft","RC-Pixelmon ","LattyCraft","PhanaticMC","MCPVP","Mineslam Network","Gontroller PvP","McBrawl","Timeless PvP","Skyblock","Imperial Networks","TitanMC Prison","Battle PvP","EDawg878 Creative","FuriousPVP","Pure Realms","Scavenger Craft PVP","Grand Theft Auto MC","CHAOTIC 2.0","SkyWars","AEM Network","Daegonner PvP","VaporMC","NodeNetworks","Classic Skyblock","Project X-Craft","CraftCadia Network","BrutalFactions","CityPrison","JediCraft","Destructioncraft","FrostyFactions","Badlion Network","Empire Minecraft","Creative Fun","Mineage","Pro Mc Games","DestinyMC Pixelmon Network","MineClash","Snapcraft","MineVision","Build Hive","CEdgePvP","HydraPVP","OriginalGamers","Mineous Prison","Rising Heroes","HexicPrison |
OlderNewer