See how a minor change to your commit message style can make you a better programmer.
Format: <type>(<scope>): <subject>
<scope>
is optional
def addContacts(): | |
import Skype4Py | |
skype = Skype4Py.Skype() | |
skype.Attach() | |
client = Skype4Py.client.Client(skype) | |
for chat in skype.Chats: | |
if len(chat.Members) > 50: | |
print chat.Name | |
for user in chat.Members: |
Skype Ad removing tutorial as created by James Dartnell (Jaddie) | |
First lets remove the access to the adverts themselves: | |
-- Warning -- | |
This will also stop the Skype home from loading into Skype, although this may be a benefit as its hardly used & simply slows the program down. | |
Open-up the control panel. | |
Open-up "Network & Internet" then "Internet Options". | |
Go to the "Security" tab. |
# Maintainer: Alexej Magura <agm2819*gmail*> | |
# | |
# | |
pkgname=libtinfo | |
pkgver=5 | |
pkgrel=7 | |
pkgdesc="symlink to ncurses for use in cuda and other packages" | |
arch=('any') | |
url="http://www.gnu.org/software/ncurses/" | |
license=('unknown') |
<?php // /app/Http/Middleware/Cors.php | |
namespace App\Http\Middleware; | |
use Closure; | |
class Cors { | |
public function handle($request, Closure $next) | |
{ | |
return $next($request) |
Example of deployment process which I use in my Nuxt.js projects. I usually have 3 components running per project: admin-panel SPA, nuxt.js renderer and JSON API.
This manual is relevant for VPS such as DigitalOcean.com or Vultr.com. It's easier to use things like Now for deployment but for most cases VPS gives more flexebillity needed for projects bigger than a landing page.
UPD: This manual now compatible with [email protected]. For older versions deployment, see revision history.
Let's assume that you have entered fresh installation of Ubuntu instance via SSH. Let's rock:
import { Knex } from 'knex' | |
export async function up(knex: Knex): Promise<any> { | |
await knex.schema.createTable('test_setup', (table: Knex.TableBuilder) => { | |
table.integer('foobar'); | |
}); | |
} | |
export async function down(knex: Knex): Promise<any> { | |
await knex.schema.dropTable('test_setup'); |