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
<!DOCTYPE html> | |
<html> | |
<head> | |
<title>Leaflet Test</title> | |
<meta charset="utf-8" /> | |
<meta name="viewport" content="width=device-width, initial-scale=1.0"> | |
<link rel="stylesheet" href="http://cdn.leafletjs.com/leaflet-0.5/leaflet.css" /> | |
<style type="text/css"> |
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
module.exports = (grunt) -> | |
grunt.initConfig | |
jade: | |
compile: | |
options: | |
pretty: true | |
data: { pageTitle: 'Otsikko otsikko', youAreUsingJade: '1' } | |
files: [ | |
src: './example.jade' | |
dest: './example.html' |
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
module.exports = (grunt) -> | |
grunt.initConfig | |
yaml: | |
render: #miksi tähän voi taas laittaa mitä vaan? | |
files: [ | |
src: './example.yaml' | |
dest: './example.json' | |
] | |
grunt.loadNpmTasks 'grunt-yaml' |
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
module.exports = (grunt) -> | |
grunt.initConfig | |
curl: | |
long: | |
src: 'http://www.hankintailmoitukset.fi/fi/?all=1' | |
dest: './scrape-file.html' | |
grunt.loadNpmTasks 'grunt-curl' | |
grunt.registerTask 'default', 'This is the default task', 'curl' |
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
module.exports = (grunt) -> | |
grunt.initConfig | |
staticHandlebars: | |
options: | |
partials: "" | |
helpers: "" | |
simpleTarget: | |
# Target-specific file lists and/or options go here. |
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
* { | |
border: 1px dashed #0000ff; | |
} |
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
this worked very nice for a single page site | |
``` | |
wget \ | |
--recursive \ | |
--page-requisites \ | |
--convert-links \ | |
[website] | |
``` | |
wget options |
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
/* compile with: g++ hello.cpp -o hello */ | |
#include <iostream> | |
using namespace std; | |
int main () | |
{ | |
cout << "Hello World!\n"; | |
return 0; | |
} |
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
var $ = require('NodObjC') | |
// First you import the "Foundation" framework | |
$.framework('Foundation') | |
// Setup the recommended NSAutoreleasePool instance | |
var pool = $.NSAutoreleasePool('alloc')('init') | |
// NSStrings and JavaScript Strings are distinct objects, you must create an | |
// NSString from a JS String when an Objective-C class method requires one. |
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
var $ = require('NodObjC') | |
$.import('Cocoa') | |
var pool = $.NSAutoreleasePool('alloc')('init') | |
, app = $.NSApplication('sharedApplication') | |
app('setActivationPolicy', $.NSApplicationActivationPolicyRegular) | |
var menuBar = $.NSMenu('alloc')('init') |
OlderNewer