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
{- | |
- Haskell experiment with functional reactive programming game engine Helm. | |
- just a basic square with x position and speed property, translating on the x axis. | |
- | |
- run: | |
- ghc translate.hs | |
- ./translate | |
-} | |
module Main where |
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
# Just to notify me when my notebook is getting hot, my fan doesn't work, i have to blow manually... | |
maxTemp=85 | |
while [ 1 ] | |
do | |
sensors=$(sensors -u) | |
PHYSICAL_TEMP1=$(echo "$sensors"| awk 'NR==13' | grep -Eo "\s[0-9]{2}") |
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
" Notes { | |
" Ben Hayden, Scott Blevins, Matt Thompson, et al. Public Domain. | |
" https://github.com/IntuitiveWebSolutions/VimConf | |
"} | |
" Basics { | |
set nocompatible " explicitly get out of vi-compatible mode | |
syntax on | |
if has('vim_starting') | |
set runtimepath+=~/.vim/bundle/neobundle.vim/ |
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
require 'Nokogiri' | |
require 'open-uri' | |
@doc = Nokogiri::HTML(open('http://www.vivotransfer.com/')) | |
@content = @doc.xpath('//p[@class = "valor"]').text | |
puts @content # => *R$ 5.550 | |
puts @content.scan(/\d/).join # => 5550 |
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
global <<< require \prelude-ls | |
module.exports = -> | |
info = | |
name :\FXCesinha | |
email :\cesardeazevedo@outlook.com | |
btcWallet :\1R4VU1ag5xhsjXs6hbJ8fsCHi1CA3FBSs | |
ROYAL_FLUSH = 1000 |
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
using System.IO; | |
using UnityEngine; | |
using UnityEditor; | |
using UnityEditorInternal; | |
using System.Linq; | |
using System.Reflection; | |
/// <summary> | |
/// Rebuilds the Fsharp solution upon Fsharp source file changes. | |
/// Approach from IdrisUnityPlayground https://github.com/bamboo/IdrisUnityPlayground/blob/master/Assets/Editor/IdrisPostprocessor.cs |
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 moment = require('moment'); | |
var BlinkTradeRest = require('blinktrade').BlinkTradeRest; | |
var BlinkTrade = new BlinkTradeRest({ | |
prod: true, | |
key: 'Ya8EkJ1kJSLyt5ZX60aWlmA7zPEgBqajt7UmvCZEvaA', | |
secret: 'xUS4e9hEl1RGpj4Fmh4KvQYKMWT2yItG9SGlDx4aYfo', | |
currency: 'BRL', | |
}); |
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 BlinkTradeWS = require('blinktrade').BlinkTradeWS; | |
var blinktrade = new BlinkTradeWS(); | |
blinktrade.connect().then(function() { | |
return blinktrade.login({ username: 'rodrigo', password: 'abc12345' }); | |
}).then(function(logged) { | |
console.log(logged); | |
}).catch(function(err) { | |
console.log(err); |
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 props = { | |
a: true, | |
b: true, | |
} | |
R.whereEq(props, { | |
a: true, | |
b: true, | |
}) // => true |
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
import React, { Component } from 'react' | |
import { | |
Text, | |
View, | |
ScrollView, | |
Dimensions, | |
StyleSheet, | |
TouchableNativeFeedback, | |
} from 'react-native' |
OlderNewer