This Is A Custom Widget

This Sliding Bar can be switched on or off in theme options, and can take any widget you throw at it or even fill it with your custom HTML Code. Its perfect for grabbing the attention of your viewers. Choose between 1, 2, 3 or 4 columns, set the background color, widget divider color, activate transparency, a top border or fully disable it on desktop and mobile.

This Is A Custom Widget

This Sliding Bar can be switched on or off in theme options, and can take any widget you throw at it or even fill it with your custom HTML Code. Its perfect for grabbing the attention of your viewers. Choose between 1, 2, 3 or 4 columns, set the background color, widget divider color, activate transparency, a top border or fully disable it on desktop and mobile.

Blog Medium Image

Home/Blog Medium Image
Blog Medium Image 2017-03-23T21:32:20+00:00

Emacs – cheat sheet

UNDO: C-_ ("control underscore")
Find (or Create) file: C-x C-f Emacs Reference Card
Save file: C-x C-s 
Exit Emacs: C-x C-c
Quit (i.e. interrupt) command: C-g
start a shell in window *shell* M-x [...]

By | March 17th, 2015|Categories: IDE|Comments Off on Emacs – cheat sheet

Underscore.js – cheat sheet

var jossWhedon = { age: 49, occupations: ["writer", "director", "producer", "composer", "actor"], shows: [ { title: "Dollhouse", femaleLead: true, characters: [ { name: "Echo", role: "doll" }, { name: "Topher", role: "mad scientist" }] }, { title: "Dr. Horrible's Sing-Along Blog", characters: [ { name: "Billy", role: "mad scientist" }, { name: "Penny", role: "love interest"}] }, { title: "Buffy [...]

By | March 12th, 2015|Categories: Javascript|Comments Off on Underscore.js – cheat sheet

Creating new Restangular Methods

// In your app configuration (config method) RestangularProvider.addElementTransformer('users', true, function(user) { // This will add a method called login that will do a POST to the path login // signature is (name, operation, path, params, headers, elementToPost) user.addRestangularMethod('login', 'post', 'login'); return user; }); // Then, later in your code you can do the following: // Here the body of the [...]

By | March 11th, 2015|Categories: AngularJS|Comments Off on Creating new Restangular Methods

AngularJS data model

As we already know, AngularJS doesn’t come with an out of the box solution for data modeling. In the most abstract way, AngularJS lets us use JSON data as a model in the controller. As the time passed and my application grew, I realized that this modeling method isn’t powerful enough to fit my application’s needs. In this article I [...]

By | March 11th, 2015|Categories: AngularJS|Comments Off on AngularJS data model

Webstorm – Configuring Ignored Files into CVS(Github)

Open the Ignored Files settings page by doing one of the following: Under the Version Control node of the Settings dialog box, click Ignored Files. In the Local tab of the Changes tool window, click the Configure Ignored Files toolbar button . The Ignored Files dialog box opens. Click (⌘ N) to create a new entry, or select an existing [...]

By | March 11th, 2015|Categories: IDE|Comments Off on Webstorm – Configuring Ignored Files into CVS(Github)

Sending SMS using Twilio

Sending SMS using Twilio Setting Up Node.js application twilioauth = require('../credentials/twilio.js'), twilio = require('twilio')(twilioauth.account_sid, twilioauth.auth_token), speakeasy = require('speakeasy'); account_sid : 'AC9cewefwerferfewrferferfwe22f19e', auth_token : 'b0a5rfwefefrefwefwefewf30b21096ed', twilio_number : 'XXXXXXXXXX', secret: 'XXXXXX' var sendSms = function(phone_number) { var code = speakeasy.totp({key: twilioauth.secret}); console.log('code is: ' + code); twilio.sendSms({ to: phone_number, from: twilioauth.twilio_number, body: 'Your verification code is: ' + code }, function (twilioerr, [...]

By | March 10th, 2015|Categories: Nodejs|Comments Off on Sending SMS using Twilio