A mixin for writing @font-face rules in SASS.
Create a font face rule. Embedded OpenType, WOFF2, WOFF, TrueType, and SVG files are automatically sourced.
@include font-face(Samplino, fonts/Samplino);| var express = require('express'); | |
| var fs = require('fs'); | |
| var path = require('path'); | |
| var port = 3005; | |
| var staticDir = "staticFiles" | |
| var app = express(); | |
| app.use(function (req, res, next) { | |
| //NOTE (JNHager): NEVER DO THIS IN A PRODUCTION SYSTEM. STRICTLY FOR TESTING LOCALLY!!!! |
Disclaimer: This is an unofficial post by a random person from the community. I am not an official representative of io.js. Want to ask a question? open an issue on the node-forward discussions repo
| #!/usr/bin/env python2 | |
| """ | |
| Author: takeshix <takeshix@adversec.com> | |
| PoC code for CVE-2014-0160. Original PoC by Jared Stafford (jspenguin@jspenguin.org). | |
| Supportes all versions of TLS and has STARTTLS support for SMTP,POP3,IMAP,FTP and XMPP. | |
| """ | |
| import sys,struct,socket | |
| from argparse import ArgumentParser |
| // webpack is a module bundler | |
| // This means webpack takes modules with dependencies | |
| // and emits static assets representing those modules. | |
| // dependencies can be written in CommonJs | |
| var commonjs = require("./commonjs"); | |
| // or in AMD | |
| define(["amd-module", "../file"], function(amdModule, file) { | |
| // while previous constructs are sync | |
| // this is async |
| package demo.foo; | |
| import demo.todo.Todo; | |
| import org.slf4j.Logger; | |
| import org.slf4j.LoggerFactory; | |
| import org.springframework.boot.CommandLineRunner; | |
| import org.springframework.core.ParameterizedTypeReference; | |
| import org.springframework.http.HttpMethod; | |
| import org.springframework.http.ResponseEntity; | |
| import org.springframework.util.concurrent.ListenableFuture; |
| // Just before switching jobs: | |
| // Add one of these. | |
| // Preferably into the same commit where you do a large merge. | |
| // | |
| // This started as a tweet with a joke of "C++ pro-tip: #define private public", | |
| // and then it quickly escalated into more and more evil suggestions. | |
| // I've tried to capture interesting suggestions here. | |
| // | |
| // Contributors: @r2d2rigo, @joeldevahl, @msinilo, @_Humus_, | |
| // @YuriyODonnell, @rygorous, @cmuratori, @mike_acton, @grumpygiant, |
| #!/bin/bash | |
| # SPECIFY THE VIRTUALENV YOU WANT TO INSTALL cx_Oracle TO # | |
| ########################################################### | |
| # Change this to whatever you want, but note that this script isn't going to make the virtualenv for you. | |
| # It assumes the environment already exists. | |
| MY_VIRTUAL_ENV='dynamic' | |
| # INSTALL ORACLE INSTANT CLIENT'S DEPENDENCIES # |
In August 2007 a hacker found a way to expose the PHP source code on facebook.com. He retrieved two files and then emailed them to me, and I wrote about the issue:
http://techcrunch.com/2007/08/11/facebook-source-code-leaked/
It became a big deal:
http://www.techmeme.com/070812/p1#a070812p1
The two files are index.php (the homepage) and search.php (the search page)
| # good git book | |
| http://git-scm.com/book | |
| # Discard uncommitted changes in a specific file | |
| git checkout file_name | |
| # Clear everything not in repo | |
| git checkout -- . | |
| # A way to quickly move to the previous commit in a git branch. This also way for "deleting" last commit. |