These commands are good as of 2011-07-27.
App store http://itunes.apple.com/us/app/xcode/id448457090?mt=12) The download/install takes awhile so start it first. When it finishes downloading you will still need to run it to complete installation.
| # To enable CORS you should add lines with CORS rules below to your valet.conf file | |
| # Find the file /usr/local/etc/nginx/valet/valet.conf - this is Valet conf for Nginx | |
| # of try to execute `locate valet.conf` and find the `valet.coinf` in `nginx` subdirectory | |
| # after you edit your valet.conf do not forget to execute `valet restart` | |
| server { | |
| listen 80 default_server; | |
| root /; | |
| charset utf-8; | |
| client_max_body_size 128M; |
| # https://jtway.co/ubuntu-server-16-06-on-raspberry-pi-3-via-terraform-93dccaef5ddb?gi=e5fcb8404a4d | |
| variable "server_ip" { | |
| default = "SERVER IP ADDRESS" | |
| } | |
| # Terraform documentation | |
| # * Provisioner null_resource: https://www.terraform.io/docs/provisioners/null_resource.html | |
| # * Provisioner Connections: https://www.terraform.io/docs/provisioners/null_resource.html |
| /** | |
| * Extends Promise with a new property. Tells the Promise to take at least a minimum of given time. | |
| * | |
| * https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise/prototype | |
| * | |
| * Example: | |
| * | |
| * var p = new Promise(function (resolve, reject) { ... }); | |
| * p.takeAtLeast(1000).then(function () { ... }); | |
| */ |
| <template> | |
| <div> | |
| <span v-show="!editing" | |
| @click="toggleEdit" v-html="showValue"></span> | |
| <div v-show="editing" class="row"> | |
| <div class="col-md-10"> | |
| <div class="form-group"> | |
| <textarea class="form-control" | |
| rows="3" |
| #!/usr/bin/env php | |
| <?php | |
| setlocale(LC_ALL, 'nl_BE.UTF8'); | |
| $handle = fopen("test.csv", "r"); | |
| while (($data = fgetcsv($handle, 1000, ";")) !== FALSE) { | |
| array_pop($data); | |
| array_walk($data, 'wrapItem'); | |
| $sql[] = 'INSERT INTO src_leaseplandb VALUES (' . implode(', ', $data) . ');'; |
| $("link[rel=stylesheet]").each(function(){ | |
| var url = $(this).attr('href'); | |
| url = url.replace(/\?tcnc=\d+/,'').replace(/\&tcnc=\d+/,''); | |
| url += (url.indexOf('?')>0 ? '&' : '?') + 'tcnc=' + (new Date()).getTime(); | |
| $(this).attr('href', url); | |
| console.log('[UPDATED CSS] '+ url); | |
| }); |
| Proj4js.defs["EPSG:31370"] = "+proj=lcc +lat_1=51.16666723333333 +lat_2=49.8333339 +lat_0=90 +lon_0=4.367486666666666 +x_0=150000.013 +y_0=5400088.438 +ellps=intl +towgs84=106.869,-52.2978,103.724,-0.33657,0.456955,-1.84218,1 +units=m +no_defs"; |
| # Makes Sinatra support multiple view paths. | |
| # Usage: | |
| # | |
| # class Main < Sinatra::Base | |
| # register Sinatra::MultiView | |
| # | |
| # get '/' do | |
| # locals = { :name => current_user.name } | |
| # | |
| # # Instead of `haml 'home', {}, locals` |
These commands are good as of 2011-07-27.
App store http://itunes.apple.com/us/app/xcode/id448457090?mt=12) The download/install takes awhile so start it first. When it finishes downloading you will still need to run it to complete installation.