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 $ from 'jquery'; | |
import Masonry from 'masonry-layout'; | |
import jQueryBridget from 'jquery-bridget'; | |
import imagesLoaded from 'imagesloaded'; | |
jQueryBridget('masonry', Masonry, $); | |
jQueryBridget('imagesLoaded', imagesLoaded, $); | |
$(document).ready(function() { |
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
byexample) λ python manage.py runserver | |
Watching for file changes with StatReloader | |
Performing system checks... | |
System check identified no issues (0 silenced). | |
April 21, 2019 - 01:37:16 | |
Django version 2.2, using settings 'mysite.settings' | |
Starting development server at http://127.0.0.1:8000/ | |
Quit the server with CTRL-BREAK. | |
[21/Apr/2019 01:37:18] "GET /admin/ HTTP/1.1" 200 4033 | |
[21/Apr/2019 01:37:19] "GET /static/admin/css/base.css HTTP/1.1" 304 0 [21/Apr/2019 01:37:19] "GET /static/admin/css/dashboard.css HTTP/1.1" 304 0 |
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
from django.contrib import admin | |
from .models import Post | |
@admin.register(Post) | |
class PostAdmin(admin.ModelAdmin): | |
list_display = ('title', 'slug', 'author', 'publish', | |
'status') | |
list_filter = ('status', 'created', 'publish', 'author') | |
search_fields = ('title', 'body') |
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
(byexample) λ python manage.py runserver | |
Watching for file changes with StatReloader | |
Exception in thread Thread-1: | |
Traceback (most recent call last): | |
File "c:\users\starlord\appdata\local\programs\python\python37-32\Lib\threading.py", line 917, in _bootstrap_inner | |
self.run() | |
File "c:\users\starlord\appdata\local\programs\python\python37-32\Lib\threading.py", line 865, in run | |
self._target(*self._args, **self._kwargs) | |
File "C:\Users\StarLord\Documents\django\byexample\byexample\lib\site-packages\django\utils\autoreload.py", line 54, in wrapper | |
fn(*args, **kwargs) |
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
from django.contrib import admin | |
from .models import Post | |
@admin.register(Post) | |
class PostAdmin(admin.ModelAdmin): | |
list_display = ('title', 'slug', 'author', 'publish', | |
'status') | |
list_filter = ('status', 'created', 'publish', 'author') | |
search_fields = ('title', 'body') |
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
from django.contrib import admin | |
from .models import Post | |
@admin.register(Post) | |
class PostAdmin(admin.ModelAdmin): | |
list_display = ('title', 'slug', 'author', 'publish','status') | |
list_filter = ('status', 'created', 'publish', 'author') | |
search_fields = ('title', 'body') | |
prepopulated_fields = {'slug': ('title',)} |
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
create a file inside of the cmder path in my vcase vscode.bat | |
@echo off | |
SET CMDER_ROOT=C:\cmder | |
"%CMDER_ROOT%\vendor\init.bat" | |
then in settings.json | |
{ |
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 React, { Component } from 'react'; | |
import InputEvents from './events/InputEvents'; | |
import MovementEvents from './events/MovementEvents'; | |
import './events/Events.css'; | |
class App extends Component { | |
render() { | |
return ( | |
<div className="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
const HtmlWebpackPlugin = require('html-webpack-plugin'); | |
const webpack = require('webpack'); | |
const path = require('path'); | |
module.exports = function(){ | |
return { | |
mode: 'development', | |
entry: [ | |
'./src/app.js' | |
], |
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 CleanWebpackPlugin = require('clean-webpack-plugin'); | |
const HtmlWebpackPlugin = require('html-webpack-plugin'); | |
const MiniCssExtractPlugin = require("mini-css-extract-plugin"); | |
const OptimizeCSSAssetsPlugin = require("optimize-css-assets-webpack-plugin"); | |
const MinifyPlugin = require("babel-minify-webpack-plugin"); | |
const path = require('path'); | |
module.exports = function (env, argv) { | |
return { | |
mode: 'production', |
OlderNewer