I search all npm packages related to node-webkit, I may had miss something
Installer and runner helper for nw.js. Allows run nwjs project by just typing nw
in app folder.
Just download helper for nwjs
invisiblesMap = "~ \t┊" | |
include = "{$include,.*}" | |
exclude = "{$exclude,.git,tmp/cache}" |
@payments_base = Payment.extending(FasterPagination) | |
@payments = @payments_base.page(params[:page]).per(20) |
% ruby --version | |
ruby 2.3.1p112 (2016-04-26 revision 54768) [x86_64-darwin15] | |
% ruby benchmark/comparing/native_vs_sequel_vs_lr.rb | |
Testing table already exists | |
Warming up -------------------------------------- | |
Hash 1.000 i/100ms | |
Array 1.000 i/100ms | |
Sequel 1.000 i/100ms | |
ActiveRecord 1.000 i/100ms |
if (pg_native) { | |
var async = require('async'); | |
pg = { | |
connect: function (connectString, callback) { | |
var client = new pg_native; | |
client.original_query = client.query; | |
client.sqlQueue = async.queue(function (sql, callback) { |
module CachableMethod | |
def cachable(merhod_name) | |
#aliased_merhod_name = :"uncached_#{merhod_name}" | |
#alias_method aliased_merhod_name, merhod_name | |
method_proc = instance_method(merhod_name) | |
ivar_name = :"@#{merhod_name}" | |
define_method(merhod_name) do |*args, &proc| | |
if instance_variable_defined?(ivar_name) |
[em-http-request, HTTParty, Net::HTTP, Net::HTTP (persistent), open-uri, RestClient, Typhoeus, Excon, Excon (persistent), Curb, Patron (persistent)] | |
+------------------------+----------+ | |
| tach | total | | |
+------------------------+----------+ | |
| Patron (persistent) | 0.223029 | | |
+------------------------+----------+ | |
| Curb | 0.235344 | | |
+------------------------+----------+ | |
| Typhoeus | 0.389802 | |
ActiveAdmin::Dashboards.build do | |
# Add this section in your dashboard... | |
section "Background Jobs" do | |
now = Time.now.getgm | |
ul do | |
li do | |
jobs = Delayed::Job.where('failed_at is not null').count(:id) | |
link_to "#{jobs} failing jobs", admin_jobs_path(q: {failed_at_is_not_null: true}), style: 'color: red' | |
end |
#! /bin/sh | |
tmp_pwd=`pwd` | |
cd /Applications/Momentics.app && source bbndk-* && cd $tmp_pwd | |
echo $QNX_HOST | |
QNX_BINS="${QNX_HOST}/usr/bin" | |
# |
tar xf wget-1.15.tar.xz
bb10_compile
from this gist to source folder