Skip to content

Instantly share code, notes, and snippets.

Violet Peña vgpena

Block or report user

Report or block vgpena

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@vgpena
vgpena / loadModel.py
Last active Sep 9, 2019
Basic text classification with Keras and TensorFlow
View loadModel.py
import json
import numpy as np
import keras
import keras.preprocessing.text as kpt
from keras.preprocessing.text import Tokenizer
from keras.models import model_from_json
# we're still going to use a Tokenizer here, but we don't need to fit it
tokenizer = Tokenizer(num_words=3000)
# for human-friendly printing
@vgpena
vgpena / gist:a9a831190131512f9004
Created Jun 11, 2014
bow to the power of SASS lists
View gist:a9a831190131512f9004
input:
@each $type in solar-to-home, solar-to-grid, solar-to-battery, grid-to-home, grid-to-battery, battery-to-home, battery-to-grid
##{$type} > .flow-img
background-image: image-url('#{$type}-bg.png')
output:
#solar-to-home > .flow-img {
background-image: url('../img/solar-to-home-bg.png?1402522356');
}
View gist:5224793
<div id="signupcontent"><p>Thank you for signing up for the coolNYC program. Please do not hesitate to contact us at <a href="mailto:&#99;&#111;&#111;&#108;&#110;&#121;&#99;&#64;&#116;&#104;&#105;&#110;&#107;&#101;&#99;&#111;&#105;&#110;&#99;&#46;&#99;&#111;&#109;" style="color: green">&#99;&#111;&#111;&#108;&#110;&#121;&#99;&#64;&#116;&#104;&#105;&#110;&#107;&#101;&#99;&#111;&#105;&#110;&#99;&#46;&#99;&#111;&#109;</a> with any questions.<br><br>
Thank you for your interest in an energy-saving summer!</p>
<div id="signupform">
</div>
View gist:5224787
<div id="signupcontent"><p>Thank you for signing up for the coolNYC program. Please do not hesitate to contact us at <a href="mailto:&#99;&#111;&#111;&#108;&#110;&#121;&#99;&#64;&#116;&#104;&#105;&#110;&#107;&#101;&#99;&#111;&#105;&#110;&#99;&#46;&#99;&#111;&#109;" style="color: green">&#99;&#111;&#111;&#108;&#110;&#121;&#99;&#64;&#116;&#104;&#105;&#110;&#107;&#101;&#99;&#111;&#105;&#110;&#99;&#46;&#99;&#111;&#109;</a> with any questions.<br><br>
Thank you for your interest in an energy-saving summer!</p>
<div id="signupform">
</div>
View gist:4667924
6. Ent 52 up, 194 down
Ent: Noun
to shit an ent: when your shit is to big to fit the description of 'a log' it becomes an 'ent'
1.'Dude i shat an ent yesterday'
2.'Wow that is some log of a turd'
'Nah dude that is an ent'
View gist:4582754
<svg class="crest" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px" width="1280px"
height="800px" viewBox="0 0 1280 800" style="enable-background:new 0 0 1280 800;" xml:space="preserve">
<g id="Layer_1">
</g>
<g id="Layer_2" style="display:none;">
<rect x="-5" style="display:inline;fill:#E0C9A2;stroke:#000000;stroke-miterlimit:10;" width="1259" height="834"/>
</g>
<g id="Layer_3">
<path style="display:none;fill:#FFF9EE;" d="M607-16h680l38,884c0,0-1329-1-1327-5s-12-204-12-204L596-4L607-16z"/>
<polygon style="display:none;fill:#D9F2FF;" points="-63,713 -45,921 1389,947 1335,-57 711,-53 "/>
View gist:4573488
as when along the thundering beach the surf of the sea strikes
beat upon beat as the west wind drives it onward; far out
cresting first on the open water, it drives thereafter
to smash roaring along the sry land. and against the rock jut
bending breaks itself into crests spewing back the salt wash;
so thronged beat upon beat the Danaans' close batallions
steady into battle, with each of the lords commanding
his own men: and these went silently; you would not think
all these people with voices kept in their chests were marching,
silently, in fear of their commanders; and upon all
You can’t perform that action at this time.