This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var app = { | |
// Application Constructor | |
initialize: function() { | |
this.bindEvents(); | |
alert("hey1"); | |
}, | |
// Bind Event Listeners | |
// | |
// Bind any events that are required on startup. Common events are: | |
// 'load', 'deviceready', 'offline', and 'online'. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta charset="utf-8" /> | |
<meta name="format-detection" content="telephone=no" /> | |
<meta name="viewport" content="user-scalable=no, initial-scale=1, maximum-scale=1, minimum-scale=1, width=device-width, height=device-height, target-densitydpi=device-dpi" /> | |
<link rel="stylesheet" type="text/css" href="css/index.css" /> | |
<title>Hello World</title> | |
</head> | |
<body> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Delegation and Notifications | |
The delegate of most Cocoa framework classes is automatically registered as an observer of notifications posted by the delegating object. The delegate need only implement a notification method declared by the framework class to receive a particular notification message. Following the example above, a window object posts an NSWindowWillCloseNotification to observers but sends a windowShouldClose: message to its delegate. | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
nmap <leader>c :w \| ! g++ % -o output <CR> " Compiles but doesn't stay in "bash mode", it automatically returns to Vim | |
nmap <leader>c :w \| ! g++ % -o output \| ! ./output <CR> " Returns E34: No previous command | |
nmap <leader>c :w \| ! g++ % -o output && ./output <CR> " It works Perfectly (and "./output" isn't executed when compilation fail because of conditional execution. | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System; | |
using System.Collections.Generic; | |
using System.Linq; | |
using System.Text; | |
using System.Threading.Tasks; | |
namespace ProjectCompany | |
{ | |
abstract class Employee | |
{ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var app = { | |
// Application Constructor | |
el : { | |
header : "heder", | |
fileList : "file-list", | |
footer : "footer" | |
} | |
initialize: function() { | |
this.bindEvents(); | |
}, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Nov 1 19:41:07 debian sshd[9920]: Accepted password for pawel from 192.168.0.21 port 37805 ssh2 | |
Nov 1 19:41:07 debian sshd[9920]: pam_unix(sshd:session): session opened for user pawel by (uid=0) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
pawel@debian:~/gitDirectory/grit/grit$ git status | |
# On branch master | |
nothing to commit, working directory clean | |
pawel@debian:~/gitDirectory/grit/grit$ echo "# test" >> benchmarks.rb | |
pawel@debian:~/gitDirectory/grit/grit$ git diff | |
diff --git a/benchmarks.rb b/benchmarks.rb | |
index e445e28..40db713 100644 | |
--- a/benchmarks.rb | |
+++ b/benchmarks.rb | |
@@ -127,3 +127,4 @@ end |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Use Gists to store code you would like to remember later on | |
console.log(window); // log the "window" object to the console |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
-(id)initWithNumberOfSegments(NSUInteger):numberOfSegments andSizeArray(NSArray *):sizeArray andTitleArray(NSArray * ):titleArray | |
{ | |
self.numOfSeg = _numberOfSegments; | |
self.sizeArray = _sizeArray; | |
self.titleArray = _titleArray; | |
return self; | |
} |