As easy as 1, 2, 3!
Updated:
- Aug, 08, 2022 update
config
docs for npm 8+ - Jul 27, 2021 add private scopes
- Jul 22, 2021 add dist tags
- Jun 20, 2021 update for
--access=public
- Sep 07, 2020 update docs for
npm version
### | |
Web Toolkit v0.4 (by M@ McCray) | |
http://gist.github.com/515035 | |
NOTE: This is meant to be used as a Cakefile (Coffee's RAKE equivalent). | |
### | |
puts = require("util").puts |
// Universal quantification is encoded in terms of quantifier-free | |
// assertions about an "abitrary" type (cp. "all swans are white" vs. | |
// "the arbitrary swan is white". Inspired by Kit Fine's 1985 "Reasoning | |
// with Arbitrary Objects", http://philosophy.fas.nyu.edu/object/kitfine. | |
// | |
// Possibly also related to Oleg Kiselyov's "Interpreting types as | |
// abstract values", http://okmij.org/ftp/Computation/index.html#teval. | |
// What I wouldn't give for kind-polymorphism here ... | |
<!doctype html> | |
<html> | |
<head> | |
<title>Three.js : WebGL Canvas Texture Text Example</title> | |
<style type="text/css"> | |
* { | |
margin: 0; | |
padding: 0; | |
} | |
body { |
in action: http://www.vimeo.com/6639381
javascript:
var pp = "/images/test/images_";
var images_p1 = [ pp + '1.jpg', pp + '2.jpg', pp + '3.jpg', pp + '4.jpg', pp + '5.jpg' ];
var images_p2 = [ pp + '6.jpg', pp + '7.jpg', pp + '8.jpg', pp + '9.jpg', pp + '10.jpg' ];
$('.preview').slideview(function(e) { return e.id == "p1" ? images_p1 : images_p2; }, { size: 75 });
Sometimes you want to have a subdirectory on the master
branch be the root directory of a repository’s gh-pages
branch. This is useful for things like sites developed with Yeoman, or if you have a Jekyll site contained in the master
branch alongside the rest of your code.
For the sake of this example, let’s pretend the subfolder containing your site is named dist
.
Remove the dist
directory from the project’s .gitignore
file (it’s ignored by default by Yeoman).
location ~ /.well-known/webfinger { | |
add_header 'Access-Control-Allow-Origin' '*'; | |
if ($arg_resource = "") { | |
return 400; | |
} | |
try_files /profiles/$arg_resource.json =404; | |
} |
ror, scala, jetty, erlang, thrift, mongrel, comet server, my-sql, memchached, varnish, kestrel(mq), starling, gizzard, cassandra, hadoop, vertica, munin, nagios, awstats
#!/bin/bash | |
#First create a repo | |
mkdir A && cd A && git init && touch a.dev && touch a.prod && git add -A && git commit -m 'init A' && cd ../ | |
#Lets create another repo that will use A as submodule with sparse-checkout | |
mkdir B && cd B && git init && touch b && git add -A && git commit -m 'init B' | |
#Now we will clone A as submodule of B and will say that file/dir we only want to use in B | |
git submodule add ../A/ A && cd A && git config core.sparsecheckout true && echo a.prod >> ../.git/modules/A/info/sparse-checkout && git read-tree -mu HEAD && cd ../ && git add -A && git commit -m 'add A as submodule/sparse-checkout' && cd ../ |
/* | |
* This is free and unencumbered software released into the public domain. | |
* | |
* For more information, please refer to <https://unlicense.org> | |
*/ | |
//Regular text | |
#define BLK "\e[0;30m" | |
#define RED "\e[0;31m" | |
#define GRN "\e[0;32m" |