Say i want to extract my ebooks(PDF) from nested folders to a flattened format
- mkdir ~/mybooks
- cd ~/nested-books-folder
- run the command below
find . -iname '*.pdf' -exec cp {} '../mybooks/.' \;
/* | |
This is an extension of the famo.us Surface type. It behaves the exact same except that the content | |
property holds a ProxyConstructor object (the type that gets returned by any of the React component | |
functions such as those in React.DOM or created by React.createClass) instead of a string or Node. | |
One thing to note is that the component fed in to content will get an extra prop, _surface, which | |
is the surface object that holds it | |
example usage | |
var TestComponent = React.createClass({ |
Famous.EasyScrollview = class EasyScrollview extends Famous.CView | |
@DEFAULT_OPTIONS: | |
containerSize: [300,300] | |
itemSize: [300,300] | |
direction: 0 | |
paginate: true | |
scrollBarThickness: 26 | |
@DIRECTION_X: 0 | |
@DIRECTION_Y: 1 |
Say i want to extract my ebooks(PDF) from nested folders to a flattened format
find . -iname '*.pdf' -exec cp {} '../mybooks/.' \;
def design | |
@template = Template.find_or_create_by_name(params[:name]) | |
end | |
def design_image | |
@template = Template.find_by_name(params[:name]) | |
render layout: false | |
end | |
def save_design |
// Source: https://groups.google.com/forum/#!topic/angular/hVrkvaHGOfc | |
// jsFiddle: http://jsfiddle.net/pkozlowski_opensource/PxdSP/14/ | |
// author: Pawel Kozlowski | |
var myApp = angular.module('myApp', []); | |
//service style, probably the simplest one | |
myApp.service('helloWorldFromService', function() { | |
this.sayHello = function() { | |
return "Hello, World!" |
sudo apt-get install vim tmux git curl
export PATH=${PATH}:/Users/felixtioh/Development/adt-bundle/sdk/platform-tools:/Users/felixtioh/Development/adt-bundle/sdk/tools | |
export PATH=${PATH}:/Users/felixtioh/bin |
;; | |
;; NS CHEATSHEET | |
;; | |
;; * :require makes functions available with a namespace prefix. | |
;; | |
;; * :use makes functions available without a namespace prefix | |
;; (i.e., refers functions to the current namespace). | |
;; | |
;; * :import refers Java classes to the current namespace. | |
;; |
This can reduce files to ~15% of their size (2.3M to 345K, in one case) with no obvious degradation of quality.
ghostscript -sDEVICE=pdfwrite -dCompatibilityLevel=1.4 -dPDFSETTINGS=/printer -dNOPAUSE -dQUIET -dBATCH -sOutputFile=output.pdf input.pdf
Other options for PDFSETTINGS:
/home/ubuntu/lending_platform/log/production.log { | |
weekly | |
missingok | |
rotate 5 | |
compress | |
delaycompress | |
notifempty | |
create 0644 ubuntu ubuntu | |
maxsize 2M | |
} |