(by @andrestaltz)
If you prefer to watch video tutorials with live-coding, then check out this series I recorded with the same contents as in this article: Egghead.io - Introduction to Reactive Programming.
#!/bin/bash | |
# Fixes sudo issues | |
if (($EUID != 0)); then | |
if [[ -t 1 ]]; then | |
sudo "$0" "$@" | |
else | |
exec 1>output_file | |
gksu "$0 $@" | |
fi |
#!/bin/bash | |
# Fixes sudo issues | |
if (($EUID != 0)); then | |
if [[ -t 1 ]]; then | |
sudo "$0" "$@" | |
else | |
exec 1>output_file | |
gksu "$0 $@" | |
fi |
# /etc/security/limits.d/10tuning.conf | |
# max number of open files | |
* soft nofile 999999 | |
* hard nofile 999999 | |
root soft nofile 999999 | |
root hard nofile 999999 | |
# max stack size (KB) | |
* soft stack unlimited |
(by @andrestaltz)
If you prefer to watch video tutorials with live-coding, then check out this series I recorded with the same contents as in this article: Egghead.io - Introduction to Reactive Programming.
defmodule Phtest.OrientConnector do | |
use Jazz | |
@base_url "http://localhost:2480/" | |
@database "Phtest" | |
@user "admin" | |
@password "admin" | |
@basic_auth [basic_auth: {@user, @password}] | |
def get(document_id, type) do | |
OrientConnector.get_document(document_id) |
.highlight .hll { background-color: #ffffcc } | |
.highlight { background: #323b3d; color: #bdd6db; background-color: #323b3d } | |
.highlight .c { color: #537178; background-color: #323b3d } /* Comment */ | |
.highlight .err { color: #bdd6db; background-color: #323b3d } /* Error */ | |
.highlight .g { color: #bdd6db; background-color: #323b3d } /* Generic */ | |
.highlight .k { color: #b1e2f2; background-color: #323b3d } /* Keyword */ | |
.highlight .l { color: #bdd6db; background-color: #323b3d } /* Literal */ | |
.highlight .n { color: #bdd6db; background-color: #323b3d } /* Name */ | |
.highlight .o { color: #bdd6db; background-color: #323b3d } /* Operator */ | |
.highlight .x { color: #bdd6db; background-color: #323b3d } /* Other */ |
require 'rubygems' | |
require 'rake' | |
require 'rdoc' | |
require 'date' | |
require 'yaml' | |
require 'tmpdir' | |
require 'jekyll' | |
require 'reduce' | |
require 'serve' |
import superagent from 'superagent'; | |
import merge from 'lodash/merge'; | |
import { camelizeKeys, decamelizeKeys } from 'humps'; | |
import config from 'config'; | |
const CALL_API = Symbol.for('Call API'); | |
/** | |
* Prepare headers for each request and include the token for authentication. | |
* @param {Boolean} token Authentication token |
<?php | |
// Server file | |
class PushNotifications { | |
// (Android)API access key from Google API's Console. | |
private static $API_ACCESS_KEY = 'AIzaSyDG3fYAj1uW7VB-wejaMJyJXiO5JagAsYI'; | |
// (iOS) Private key's passphrase. | |
private static $passphrase = 'joashp'; | |
// (Windows Phone 8) The name of our push channel. | |
private static $channelName = "joashp"; |