⌘T | go to file |
⌘⌃P | go to project |
⌘R | go to methods |
⌃G | go to line |
⌘KB | toggle side bar |
⌘⇧P | command prompt |
This file contains 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
function Player(id, name) { | |
this.id = id; | |
this.name = name; | |
this.hp = 100; | |
return this; | |
} | |
Player.prototype.attack = function(type) | |
{ | |
gameLogic.attack(this, type); |
This file contains 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
/* | |
challenge=18 | |
Transported 430 | |
Elapsed time 299s | |
Transported/s 1.44 | |
Avg waiting time 12.6s | |
Max waiting time 34.0s | |
Moves 2798 |
This file contains 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
#!/bin/bash | |
# Functions ============================================== | |
# return 1 if global command line program installed, else 0 | |
# example | |
# echo "node: $(program_is_installed node)" | |
function program_is_installed { | |
# set to 1 initially | |
local return_=1 |
This file contains 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
package main | |
import ( | |
"encoding/json" | |
"flag" | |
"fmt" | |
"net/http" | |
"time" | |
) |
This file contains 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
package main | |
import ( | |
"crypto/tls" | |
"flag" | |
"fmt" | |
"io/ioutil" | |
"log" | |
"net/http" | |
"regexp" |
This file has been truncated, but you can view the full file.
This file contains 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
(function() { | |
function exifDate(U) { | |
var X = !window.XMLHttpRequest ? new ActiveXObject('Microsoft.XMLHTTP') : new XMLHttpRequest; | |
X.open('GET', U, false); | |
try{ X.send();}catch(y){} | |
var dt=X.getResponseHeader("Last-Modified"); | |
return new Date(dt).toISOString().slice(0,10).replace(/-/g,"-"); | |
} | |
$("img:not(.pull-right)").map(function(i, img){ | |
$(img).parent().append("<span>Feltöltve: " + exifDate(img.src) + "</span>") |
This file contains 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
import os, io | |
import webbrowser | |
import urllib2 | |
inputFileName = './youtube-video-list.txt' | |
def ReadMultipleDataFrom(thisTextFile, thisPattern): | |
inputData = [] | |
file = open(thisTextFile, "r") | |
for iLine in file: |