field | error | issue | solution |
---|---|---|---|
Tipo do Registro |
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
/** | |
* Monkey patch for flash.utils.Dictionary | |
* @example Basic usage:<listing version="3.0"> | |
* var user:Dictionary = new Dictionary(); | |
* user.name = "Gabriel Laet"; | |
* user.website = "http://gabriellaet.com"; | |
* trace(user.length()); | |
* trace(user.keys()); | |
* trace(user.values()); |
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
--- | |
default: | |
- debug: false | |
open: public/myapp.swf | |
applications: | |
- class: source/classes/Main.as | |
output: public/myapp.swf | |
# - class: source/classes/MyOtherApp.as |
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
package | |
{ | |
public function map(value:Number, startA:Number, endA:Number, startB:Number, endB:Number):Number | |
{ | |
return startB + (endB - startB) * ((value - startA) / (endA - startA)); | |
} | |
} |
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
#!/usr/bin/env python | |
# encoding: utf-8 | |
""" | |
bulkloader_lazyfile.py | |
Created by gabriellaet on 2008-05-14. | |
Copyright (c) 2008 Gringo. All rights reserved. | |
""" | |
import os, sys |
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
somafm(){ mplayer -vo none -ao sdl http://somafm.com/startstream="$@".pls; } | |
somafm groovesalad |
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
set -g utf8 | |
set-option -g default-shell /bin/zsh | |
set-window-option -g utf8 on | |
# make tmux display things in 256 colors | |
set -g default-terminal "screen-256color" | |
# set scrollback history to 10000 (10k) | |
set -g history-limit 10000 |
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/idea.sh 2015-06-02 00:03:02.869607320 -0300 | |
+++ bin/idea.sh 2015-06-02 00:01:59.867708731 -0300 | |
@@ -171,6 +171,12 @@ | |
CLASSPATH="$CLASSPATH:$IDEA_CLASSPATH" | |
fi | |
+# Define HIDPI flag | |
+SCALE_FACTOR=$(gsettings get org.gnome.desktop.interface scaling-factor | sed 's/uint32\ //') | |
+if [ "$SCALE_FACTOR" = 2 ]; then | |
+ HIDPI_PROPERTIES="-Dhidpi=true" |
Just an example of how you can make your webpack config more declarative an re-usable.
You can have a generic webpack.config.js
that includes most of your common setup (loaders, plugins and all that)
and an attribute in your project's package.json
(or anywhere you think it makes sense) containing your project's
entries or any other setup you might want to change.
npm start
- live reload,http://localhost:8000
npm run build
- build to dist foldernpm run build -- -p
- production build to foldernpm run watch
- watch to dist folder
OlderNewer