Skip to content

Instantly share code, notes, and snippets.

@dolzenko
dolzenko / tinymce-content.css
Created July 14, 2009 12:23
Style un-reset for TinyMCE content inserted on the pages with YUI CSS reset
/* Style un-reset for TinyMCE content inserted on the pages with YUI CSS reset.
* Added along with YUI CSS reset to the content_css option of TinyMCE and to the page on which TinyMCE content should be displayed.
*/
/* This part is based on tinymce-3.2.1.1\jscripts\tiny_mce\themes\advanced\skins\default\content.css */
.mceContentBody,
.mceContentBody td,
.mceContentBody pre
{
@bromanko
bromanko / clone-rackspace-container.js
Created February 20, 2012 16:28
Cloudfiles Copy Container
var cloudfiles = require('cloudfiles');
request = require('request');
// CloudFiles client configuration
var configCloudFiles = {
auth: {
username: '',
apiKey: '',
host: 'auth.api.rackspacecloud.com'
}
@Shaked
Shaked / 1-cur-popup-blocker.md
Last active November 13, 2015 23:40
Remove ynet ad against popup blockers

Remove ynet ad against popup blockers

If you are using a popup blocker, and you are annoyed by Ynet's message that tells you to disable it, you should follow this guide.

  • Go to: chrome-extension://gighmmpiobklfepjocnamgkkbiglidom/options/index.html
  • Click on Edit and add: @@http://www.ynet.co.il/common/javascript/ads.js. Should look like: Popup Blocker Settings
  • Click on Save
  • Once done, save it and go to www.ynet.co.il and use hard referesh.
@thegrubbsian
thegrubbsian / backbone.events.extensions.js
Created September 8, 2012 04:10
Proxy or forward Backbone events through a mediator
(function() {
var proxy = function(source, eventName) {
var _self = this;
source.on(eventName, function(evt) {
var args = Array.prototype.slice.apply(arguments).splice(1);
args.unshift(evt);
_self.trigger.apply(_self, args);
});
};
@php-coder
php-coder / Article.java
Created November 24, 2011 10:51
JPA @EntityListeners example
import java.util.Date;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.EntityListeners;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.Table;
import javax.persistence.Temporal;
import javax.persistence.TemporalType;
@tbranyen
tbranyen / backbone.collectioncache.js
Created June 4, 2012 06:37
Backbone.Collection caching by URL
/*!
* backbone.collectioncache.js v0.0.2
* Copyright 2012, Tim Branyen (@tbranyen)
* backbone.collectioncache.js may be freely distributed under the MIT license.
*/
(function(window) {
"use strict";
// Dependencies
@elswork
elswork / Readme.md
Last active June 20, 2019 13:55
Data Science Docker Stack

Data Science Docker Stack

This set of Docker images were developed to provide a fast and reproducible way to play, develop and learn with Tensorflow under Python environment, from minimal installation to a complete one including JupyterLab computational environment and OpenCV (Open Source Computer Vision Library). Use or build images for amd64 or arm32v7 architectures without hassle, the whole set is Multi-Arch designed. Get latest versions and switch between them while keep clean your system.

Features Chart

GitHub Python2 Python3 Tensorflow JupyterLab OpenCV
# Create first network with Keras
from keras.models import Sequential
from keras.layers import Dense
import numpy
import threading as t
import tensorflow as tf
graph = tf.get_default_graph()
def t_thread():
@jonathandixon
jonathandixon / Grunt-Cordova-CLI.md
Last active January 5, 2021 22:00
Using Grunt with a Cordova 3 project.

Grunt and Cordova 3

The advantages of using Grunt with Cordova:

  1. It simplifies working with the cordova cli.
  2. It provides a mechanism to copy platform customization to the platforms directory without having to commit the generated plugins and platforms directories to version control.
  3. It provides a way to watch resources and automatically run cordova commands.

Stack Overflow: .gitignore for PhoneGap/Cordova 3.0 projects - what should I commit?

@jonathandixon
jonathandixon / .gitignore
Last active January 5, 2021 22:01
Cordova CLI project .gitignore and helper script. Useful when you don't want to commit the platforms and plugins directories to version control. http://stackoverflow.com/q/17911204/417568
platforms/
plugins/