View Calculadora.sol
pragma solidity ^0.4.24;
import "localhost/math/SafeMath.sol";
contract Calculadora{
using SafeMath for uint;
uint public valor01;
uint public valor02;
View dependency-resolution.js
function getModules(entry) {
const rootModule = createModuleObject(entry)
const modules = [rootModule]
// Iterate over the modules, even when new
// ones are being added
for (const module of modules) {
module.map = {} // Where we will keep the module maps
module.requires.forEach(dependency => {
View gist:bd5ccb08bd4b9142a962d78ae28652ec
What is scope? Your explanation should include the idea of global vs. local scope.
Why are global variables avoided?
Explain JavaScript's strict mode
What are side effects, and what is a pure function?
Scope refers to the accessibility of function names or variables in different parts of a codebase. When JS runs, it looks locally first and
continues up through to the parents till it reaches the function name or variable called upon. If there is nothing, JS will return "Uncaught ReferenceError." Global
scope refers to variables defined outside of a function. Local scope refers to variables defined inside a function block. Global scopes should be
avoided because scripts that include that very same variable may overwrite the globally-defined variable. To avoid this mess, strict mode ("use strict") should be used
at the top of the codebase. This feature prevents sloppy, unsafe coding, which encourages programmers to creature "pure" function. A "pure"
View prim.py
# -*- coding: utf-8 -*-
from OpenGL.GL import *
from array import array
glEnableClientState(GL_VERTEX_ARRAY)
class Primitive():
def __init__(self,vert,colors,colors2,drawMode,ind,x=0,y=0,z=0,s=0,rX=0,rY=0,rZ=0,sX=1,sY=1,sZ=1):
#Csúcstömbadatok tárolása/Storing vertex-data
self.vert=array('f',list(vert))
self.vert=glGenBuffers(1)
View example.py
from os import getenv
from boto3 import Session
from util import make_refreshable_assume_role_session
def example():
master_session = Session(aws_access_key_id=getenv('AWS_ACCESS_KEY_ID'),
aws_secret_access_key=getenv('AWS_SECRET_ACCESS_KEY'))
assume_role_params = dict(
View code php
<?php
$langs = array('10.5'=>'ajax','2'=>'php','3'=>'ruby','4'=>'python','5'=>'class','6'=>'object','7'=>'rose');
echo "<ul>";
foreach ($langs as $lang => $copy) {
View gist:d6ef21524486edac952f06d2967539f7
Started by upstream project "node-compile-windows" build number 19474
originally caused by:
Started by upstream project "node-test-commit-windows-fanned" build number 19355
originally caused by:
Started by upstream project "node-test-commit" build number 19846
originally caused by:
Started by upstream project "node-test-pull-request" build number 15917
originally caused by:
Started by user Rich Trott
[EnvInject] - Loading node environment variables.
View module-object.js
let ID = 0
function createModuleObject(filepath) {
const source = fs.readFileSync(filepath, 'utf-8')
const requires = detective(source)
const id = ID++
return { id, filepath, source, requires }
}
View gist:1ee9457fd873f069b0e87d2bb4e6c468
<link rel="import" href="../../bower_components/polymer/polymer-element.html">
<link rel="import" href="../../bower_components/polymer/lib/elements/dom-if.html">
<link rel="import" href="../../bower_components/iron-icon/iron-icon.html">
<link rel="import" href="../../bower_components/iron-icons/iron-icons.html">
<dom-module id="prop-computadas">
<template>
<style>
:host {
display: block;
}