Skip to content

Instantly share code, notes, and snippets.

Jonathan Samines jonathansamines

Block or report user

Report or block jonathansamines

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View server.js
// initialize server
import Service from './service';
method: 'GET',
config: {
handler() {
const service = new Service();
View abilities.js
import { withAbility, provideSession } from ‘react-can’;
import SimpleMenu from ‘simple-menu’;
const entryAbilities = {
canWrite(session, props) {
return session.user.role ===ADMIN’;
canRead(session, props) {
return false;
View defaults-rest-spread-es5.js
import Ember from 'ember';
export default Ember.Object.extend({
gtCountry: { code: 'GT', region: 'LATAM' },
usCountry: { code: 'US', region: 'NA' },
filterByRegion(region) {
// adiós al "arguments" objeto. No más conversiones a arrays!
const countries =, 1);
const filtereCountries = countries.filter((country) => country.region === region);
View EliminarProcesosExcel
Dim proc As System.Diagnostics.Process
For Each proc In System.Diagnostics.Process.GetProcessesByName("EXCEL")
If proc.MainWindowTitle.Trim.Length = 0 Then
End If
jonathansamines / AssemblyDirectory
Created Jul 8, 2013
Obtiene el directorio en donde un ensamblado está ejecutandose.
View AssemblyDirectory
Public ReadOnly Property AssemblyDirectory() As String
Dim codeBase As String = Assembly.GetExecutingAssembly().CodeBase
Dim uriBuilder As New UriBuilder(codeBase)
Dim assemblyPath As String = Uri.UnescapeDataString(uriBuilder.Path)
Return Path.GetDirectoryName(assemblyPath)
End Get
End Property
You can’t perform that action at this time.