Skip to content

Instantly share code, notes, and snippets.

View moffeemoffee's full-sized avatar

Femo Bayani moffeemoffee

View GitHub Profile
import numpy as np
from keras import backend as K
from keras.models import Sequential
from keras.layers.core import Dense, Dropout, Activation, Flatten
from keras.layers.convolutional import Convolution2D, MaxPooling2D
from keras.preprocessing.image import ImageDataGenerator
from sklearn.metrics import classification_report, confusion_matrix
#Start
train_data_path = 'F://data//Train'
@mp4096
mp4096 / ppt2pdf.ps1
Created April 28, 2016 10:56
Batch convert PowerPoint files to PDF
# Batch convert all .ppt/.pptx files encountered in folder and all its subfolders
# The produced PDF files are stored in the invocation folder
#
# Adapted from http://stackoverflow.com/questions/16534292/basic-powershell-batch-convert-word-docx-to-pdf
# Thanks to MFT, takabanana, ComFreek
#
# If PowerShell exits with an error, check if unsigned scripts are allowed in your system.
# You can allow them by calling PowerShell as an Administrator and typing
# ```
# Set-ExecutionPolicy Unrestricted
@odan
odan / xampp_php7_xdebug.md
Last active October 19, 2024 04:15
Installing Xdebug for XAMPP
@xcoulon
xcoulon / logger_template.adoc
Last active July 2, 2024 17:17
SLF4J Logger Template for Eclipse

SLF4J Logger Template for Eclipse

In Preferences>Java>Editor>Templates, create a new template named logger in the Java type members context and with the following pattern:

/** The usual Logger.*/
private static final Logger LOGGER = LoggerFactory.getLogger(${enclosing_type}.class);
${:import('org.slf4j.Logger','org.slf4j.LoggerFactory')}
@daniellevass
daniellevass / android_material_design_colours.xml
Last active September 9, 2024 06:08
Android Material Design Colours
<?xml version="1.0" encoding="utf-8"?>
<resources>
<!-- google's material design colours from
http://www.google.com/design/spec/style/color.html#color-ui-color-palette -->
<!--reds-->
<color name="md_red_50">#FFEBEE</color>
<color name="md_red_100">#FFCDD2</color>
<color name="md_red_200">#EF9A9A</color>
@P7h
P7h / IntelliJ_IDEA__Perf_Tuning.txt
Last active October 21, 2024 01:10
Performance tuning parameters for IntelliJ IDEA. Add these params in idea64.exe.vmoptions or idea.exe.vmoptions file in IntelliJ IDEA. If you are using JDK 8.x, please knock off PermSize and MaxPermSize parameters from the tuning configuration.
-server
-Xms2048m
-Xmx2048m
-XX:NewSize=512m
-XX:MaxNewSize=512m
-XX:PermSize=512m
-XX:MaxPermSize=512m
-XX:+UseParNewGC
-XX:ParallelGCThreads=4
-XX:MaxTenuringThreshold=1
@davidcalhoun
davidcalhoun / japanese-guide.md
Created July 31, 2011 09:06
Quick Japanese Language Guide

Quick Japanese Language Guide

Quick rules

  • Vowels sound similar to Spanish: a = ah, e = eh, i = ee, o = oh, u = ooh.
  • Doubled letters mean long vowels. For instance, ooki is the same as ōki (ohhh-ki).
  • There are multiple ways to say things. Generally, the longer the sentence, the more polite. For an example, see "Thank you" below in Basic Conversation.
  • Some endings are barely audible, so it's best to just omit them if you try to say something. These silent endings are in parenthesis. For instance, "DES(U)" sounds like "DES". It will only sound like "DESU" when someone is being very polite.
  • Don't look at the whole word when pronouncing, just pronounce syllable by syllable. For instance, "hajimemashite" ("nice to meet you") may look hard to pronounce, but you just sound it out, splitting it up: "ha-ji-me-ma-shi-te".