Use this script to bootstrap an install of Scoop regardless of your version of Powershell
To use run this from Powershell:
iex (new-object net.webclient).downloadstring('http://bit.ly/1ECcuEn')
/* | |
@author Simon Hartcher | |
@studentNo c3185790 | |
*/ | |
#include <stdio.h> | |
#include <stdlib.h> | |
#include <limits.h> | |
#include <stdint.h> | |
#include <stdbool.h> | |
#include <string.h> |
#include "question2.h" | |
#include <stdio.h> | |
#include <stdlib.h> | |
#include <string.h> | |
#include "question1.h" | |
int | |
load_data(FILE *fp, t_data *ptr_data) { | |
//read into array | |
fread(&ptr_data->n, BINARY_N_LENGTH, 1, fp); |
int | |
load_data(FILE *fp, t_data *ptr_data) { | |
//read into array | |
fread(&ptr_data->n, BINARY_N_LENGTH, 1, fp); | |
//get n | |
int n = extract_little((char *)&ptr_data->n, 0, BINARY_N_LENGTH); | |
//allocate array | |
ptr_data->array = malloc(sizeof(t_double) * n); |
$cmd = "java -jar $(Resolve-Path $env:SCOOP)\apps\pixel-dungeon\1.7.2a-1\desktop-1.7.2a-1.jar" | |
start-job -scriptblock { iex $cmd } |
#requires -v 3 | |
# remote install: | |
# iex (new-object net.webclient).downloadstring('https://get.scoop.sh') | |
$erroractionpreference='stop' # quit if anything goes wrong | |
$branch = "scoop-update-git" | |
# get core functions | |
$core_url = "https://raw.githubusercontent.com/deevus/scoop/$branch/lib/core.ps1" |
# Usage: scoop plist <query> | |
# Summary: A posh version of scoop list | |
# Help: Lists the apps installed in scoop | |
param($query) | |
$(scoop shellinit) | |
. "$env:SCOOP_HOME/lib/core.ps1" | |
. "$env:SCOOP_HOME/lib/manifest.ps1" | |
. "$env:SCOOP_HOME/lib/versions.ps1" |
Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum. |
info it worked if it ends with ok | |
verbose cli [ 'C:\\Program Files (x86)\\nodejs\\\\node.exe', | |
verbose cli 'C:\\Program Files (x86)\\nodejs\\node_modules\\npm\\bin\\npm-cli.js', | |
verbose cli 'install', | |
verbose cli '-g', | |
verbose cli 'express' ] | |
info using npm@1.1.1 | |
info using node@v0.6.11 | |
verbose config file C:\Users\Simon\.npmrc | |
verbose config file C:\Program Files (x86)\nodejs\etc\npmrc |
import urllib2,os; pf='Package Control.sublime-package'; ipp=sublime.installed_packages_path(); os.makedirs(ipp) if not os.path.exists(ipp) else None; urllib2.install_opener(urllib2.build_opener(urllib2.ProxyHandler())); open(os.path.join(ipp,pf),'wb').write(urllib2.urlopen('http://sublime.wbond.net/'+pf.replace(' ','%20')).read()); print 'Please restart Sublime Text to finish installation' |